The ssteiner Blog-o-matic

Linux Admin, OS X, Cocoa

XCode 3.0 Keyboard Shortcuts

Here’s a few simple ones:

  1. Ctrl+Tab rotates focus between the file list, search bar and text edit area.
  2. Cmd+Opt+UpArrow toggles between the .h and .m files of the class you are working on.
  3. Cmd+DoubleClick on a highlighted object or method takes you to the documentation for that object or method.
  4. Opt+DoubleClick on a highlighted object or method takes you to the header file for that object where the method is defined.
  5. Cmd+Click the .h files in your project and then go to menu: Design -> Class Model -> Quick Model. This generates a really nice class diagram of the classes in your project.

For a really complete list, check out Cocoa Samurai

2008/04/29 Posted by ssteiner | XCode | | No Comments Yet

Stupid __MyCompanyName__ in XCode 3.0

To change the __MyCompanyName__ substitution in XCode 3.0, go to a terminal and type:

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions "{ \"ORGANIZATIONNAME\" = \"mycompanyname\"; }"

Restart XCode.

Create a new file to make sure it worked.

How handy.

2008/04/29 Posted by ssteiner | XCode | , , | No Comments Yet