Re: Trapping window close event
Re: Trapping window close event
- Subject: Re: Trapping window close event
- From: j o a r <email@hidden>
- Date: Wed, 19 Mar 2003 12:10:03 +0100
Read about the concept of "delegation" in the Cocoa documentation, and
then check the delegate methods of NSWindow. You should probably also
check the documentation for NSApplication for the
"applicationShouldTerminateAfterLastWindowClosed:" method.
j o a r
On Wednesday, Mar 19, 2003, at 11:57 Europe/Stockholm, Suman Ganguly
wrote:
In my application I want to close the application as soon as the user
clicks
on the close button (appearing on the left top corner of the window)
of the
application window.
Is there any event or something else to trap that event? Any
suggestion will
be highly appreciated.
_______________________________________________
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.