Re: Stopping the new document at launch
Re: Stopping the new document at launch
- Subject: Re: Stopping the new document at launch
- From: Eric Peyton <email@hidden>
- Date: Thu, 21 Feb 2002 17:05:25 -0600
Sure is an easy one. Take a look at NSApplication.h
On dock click
- (BOOL)applicationShouldHandleReopen:(NSApplication *)sender
hasVisibleWindows:(BOOL)flag;
On launch
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender;
They are delegate methods. Check the docs.
Eric
On Thursday, February 21, 2002, at 04:29 PM, Drew Cunningham wrote:
This is probably an easy question to answer, but one I've had a hard
time searching for...
How do you stop an application from automatically opening a new
document when you
1) launch it and also
2) switch to it from the doc?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.