Re: how to eliminate an annoying issue of the multi-document cocoa application?
Re: how to eliminate an annoying issue of the multi-document cocoa application?
- Subject: Re: how to eliminate an annoying issue of the multi-document cocoa application?
- From: Tim Isted <email@hidden>
- Date: Fri, 18 Jul 2008 20:48:20 +0100
In your application delegate object, simply implement:
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
{
return NO;
}
This will prevent the new document automatically being displayed.
Tim
On 18 Jul 2008, at 16:39, Cloud Strife wrote:
Greetings everyone.
I am new to creating an new multi-doc application with Cocoa
framework.
After I created such one using the Xcode built-in template. There
was a
window, the new document, automatically jump out after I launched the
application. Due to the requirement of my application, this behavior
is
rather annoying. I am wondering is there any way to avoid this
behavior?
In other words, I want to make the new document can only be created by
issuing the explicit command to the application, for example, by
clicking
the "New" menu item.
If anyone knows any solution to this problem, would you please give
me a
guidance? Any help is highly appreciated.
Thank you very much in advance.
--
Best regards.
_______________________________________________
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