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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev%40timisted.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to