Re: How do I insure that my NSDocument subclass is not initialized before I open a document?
Re: How do I insure that my NSDocument subclass is not initialized before I open a document?
- Subject: Re: How do I insure that my NSDocument subclass is not initialized before I open a document?
- From: Chase Meadors <email@hidden>
- Date: Tue, 28 Jul 2009 15:09:21 -0500
In MainMenu.xib, add an app delegate object and override:
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender {
return NO;
}
On Jul 28, 2009, at 2:41 PM, Korei Klein wrote:
I have a subclass of NSDocument which is initialized whenever I open
a new document and when my application is first started.
How do I change the application such that my subclass is not
initialized when I start the application?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden