| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Where I'm stuck is that I need find out in applicationWillFinishLaunching: whether or not the app was launched via a document or via the app. But, application:openFile: is not sent until after applicationWillFinishLaunching: and by the time applicationDidFinishLaunching: is sent, there is already an untitled document opened automatically. How else can I check how the app was launched via a document?
I think you can get the behaviour you describe just by implementing -applicationShouldOpenUntitledFile: in your app delegate. That shouldn't get called until the app is finished launching.
| References: | |
| >Re: nsdocument/nsapp delegate question (From: "John C. Randolph" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.