• 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: Quitting single-window application on close
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Quitting single-window application on close


  • Subject: RE: Quitting single-window application on close
  • From: email@hidden
  • Date: Tue, 16 Mar 2004 10:08:04 -0000

Hi Michael,

In your app delegate implement the following method:

- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication
*)theApplication
{
Return YES;
}

Cheers,

Alun Carp
Driver Development Team Leader
Data Encryption Systems Limited

-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of Michael Becker
Sent: 16 March 2004 09:39
To: Cocoa Developers
Subject: Quitting single-window application on close

Hello!

How can I quit my single-window application when the window is closed?
Sorry for this easy question, but right now I just can't see it...

Bye,
Michael
_______________________________________________
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.


  • Prev by Date: Quitting single-window application on close
  • Next by Date: Re: Quitting single-window application on close
  • Previous by thread: Re: Quitting single-window application on close
  • Next by thread: Problem with the Keyboard Events in a window
  • Index(es):
    • Date
    • Thread