Re: Trapping window close event
Re: Trapping window close event
- Subject: Re: Trapping window close event
- From: Dan Bernstein <cocoa-dev%email@hidden>
- Date: Wed, 19 Mar 2003 13:10:35 +0200
There is a NSWindow delegate message, windowWillClose:. Make one of
your controller objects the delegate of the window (or register for the
NSWindowWillCloseNotification).
On Wednesday, March 19, 2003, at 12:57 PM, Suman Ganguly wrote:
Hi All,
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.
Thanks,
Suman Ganguly
_______________________________________________
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.