• 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: closing window and having application remain running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: closing window and having application remain running


  • Subject: Re: closing window and having application remain running
  • From: "Jordan Krushen" <email@hidden>
  • Date: Sat, 24 Jun 2006 16:30:52 -0700

On 6/24/06, Tyler Riddle <email@hidden> wrote:

I have an application that I want to allow users to close the main
window and have the application continue running. I've implemented the
following code in the NSApplication delegate and it works, my question
is: is this the right way to do it?

- (BOOL) applicationOpenUntitledFile:(NSApplication *)app

See -applicationShouldTerminateAfterLastWindowClosed:

file:///Developer/ADC Reference Library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/applicationShouldTerminateAfterLastWindowClosed:

J.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >closing window and having application remain running (From: "Tyler Riddle" <email@hidden>)

  • Prev by Date: Re: how do I determine if this is the first time the app is launched?
  • Next by Date: Removing all objects in NSTreeController
  • Previous by thread: closing window and having application remain running
  • Next by thread: how do I determine if this is the first time the app is launched?
  • Index(es):
    • Date
    • Thread