• 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: Stopping the new document at launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Stopping the new document at launch (From: Drew Cunningham <email@hidden>)

  • Prev by Date: Developer Docs Online
  • Next by Date: Re: Stopping the new document at launch
  • Previous by thread: Stopping the new document at launch
  • Next by thread: Re: Stopping the new document at launch
  • Index(es):
    • Date
    • Thread