A handy technique during development is to have an application automatically open the last document it used each time it's launched.
It's just that much faster to get back running the app after making a change.
Add this method to the app delegate:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSArray *urls = [[NSDocumentController sharedDocumentController] recentDocumentURLs];
if ([urls count] > 0) {
[[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:[urls objectAtIndex:0]
display:YES];
}
}