Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

NeonKingKong

macrumors member
Original poster
Nov 14, 2008
69
7
Portland, OR
A question regarding objective-c / cocoa.

Hello world. When I launch my application, i have a method getting called inside

'windowControllerDidLoadNib'

that basically initializes the application, by calling 'runModalForWindow' on 'NSApplication' with for it's argument, an "intro panel." The intro panel is shown every time it is the case that it is a new document.

However, when I open archived documents I also get the intro panel. Would there be a way to detect the state of either a new document or opening one, so that inside 'windowControllerDidLoadNib', I could choose the appropriate action?

Thank you in advance for any replies.

Sincerely,
Finley
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.