Re: Quit on close Window?
Re: Quit on close Window?
- Subject: Re: Quit on close Window?
- From: Yann Bizeul <email@hidden>
- Date: Sun, 4 May 2003 18:22:59 +0200
- Resent-date: Sun, 4 May 2003 18:31:03 +0200
- Resent-from: Yann Bizeul <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
Just register as an observer for NSWindowWillCloseNotification and call
[ NSApp terminate: self ]
Did I missed something ?
Le dimanche, 4 mai 2003, ` 17:57 Europe/Paris, Michael Hanna a icrit :
Like most things in Cocoa, the solution to this is probably obvious
and simple, but I'm not clear on how to do it. How do you set a
single-window, "MainMenu.nib" program to quit on closure of the >
window?
regards,
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.