Monday, May 11, 2009


- (void)applicationDidFinishLaunching:(UIApplication *)application {

//Copy database to the user's phone if needed.
[self copyDatabaseIfNeeded];

//Initialize the coffee array.
NSMutableArray *tempArray = [[NSMutableArray alloc] init];
self.coffeeArray = tempArray;
[tempArray release];

//Once the db is copied, get the initial data to display on the screen.
[Coffee getInitialDataToDisplay:[self getDBPath]];

// Configure and show the window
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}


Thursday, May 7, 2009

XCode Tips & Tricks

alt-?-up
Switch between .m and .h file

Cmd-/
Automatically inserts "//" for comments.

#pragma mark Foo
Organize methods in your source files

#pragma mark -
Display a menu separator

Ctrl+Left/Right Arrow
Intra-word text navigation

⌘-[ and ⌘-]
Indent and unindent selected text.

Double-click on the square brackets
Obtains bracket and parentheses matching

Ctrl-alt-⌘ r
Clear the log

Shift-Cmd-c
Reduce the scope to only show your active project.