• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to eliminate an annoying issue of the multi-document cocoa application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >how to eliminate an annoying issue of the multi-document cocoa application? (From: "Cloud Strife" <email@hidden>)

  • Prev by Date: Re: Dispatch NSEvent to everyone
  • Next by Date: Re: NSMutableDictionary autorelease chrashes application
  • Previous by thread: how to eliminate an annoying issue of the multi-document cocoa application?
  • Next by thread: NSPopUpButton style question ... "Push" v.s. "Round Textured"
  • Index(es):
    • Date
    • Thread