Re: Terminate on Close
Re: Terminate on Close
- Subject: Re: Terminate on Close
- From: Wade Tregaskis <email@hidden>
- Date: Thu, 13 Nov 2003 11:26:45 +1100
Another newb question. How do I get an Objective-C application to
terminate when the users presses the close button?
Look at the documentation for NSApplication - there's a delegate method
which allows you to return whether or not the app should quit when the
last window is closed.
Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.