I’m crawling out of my cave to make a quick point before I get back to coding. In Cocoa, if you want to have your window shown when you click on its icon in the Dock, you need to add this method to the app delegate:
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication
hasVisibleWindows:(BOOL)flag
{
if( !flag )
[window makeKeyAndOrderFront:nil];
return YES;
}
Seriously, this should be included in the default app delegate template generated by Xcode. I can’t think of a single reason why its not.
Thanks! I don't see how I was missing this!