Safari 4 Beta - Open Links in New Tab (Not a New Window)

Mar. 6, 2009

 

The thing that’s been killing me the most with the new Safari 4 beta is not the funky titlebar embedded tabs, but the fact that targeted links open in a new window instead of a new tab.  Luckily, running this line of code at the terminal (on a Mac) resolves that issue:

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

 
 
 
 
 
 
 
 
 

Quick Tip: Remove Gap Between iPhone Status Bar and UINavigationBar

Feb. 2, 2009

 

If you ever come across the problem in the image below where there is a small gap between the iPhone status bar and the navigation bar, add the following code to fix it:

[viewController.view setFrame: [viewController.view bounds]];

Gap Between iPhone Status Bar and UINavigationBar