• 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: Delegation question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delegation question


  • Subject: Re: Delegation question
  • From: Enigmarelle Development <email@hidden>
  • Date: Thu, 10 Jan 2002 14:42:51 -0500

On Thursday, January 10, 2002, at 11:14 AM, Martin Kautz wrote:

Hello list.
How Do I quit an application by clicking the close button of it's window
(cocoa app, not document based)?
I know it's done by sort of delegation, but an available source to poke in
it it would be cool.

Regards,
Martin

in your app delegate:

-(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)application
{
return YES;
}


-john c. warner
enigmarelle development
http://www.enigmarelle.com/


References: 
 >Delegation question (From: Martin Kautz <email@hidden>)

  • Prev by Date: Again: NSFileWrapper (sorry)
  • Next by Date: browser plugin help request
  • Previous by thread: Delegation question
  • Next by thread: Re: NSFileWrapper, type & creator -> questions
  • Index(es):
    • Date
    • Thread