Re: Knowing when window closed
Re: Knowing when window closed
- Subject: Re: Knowing when window closed
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 30 Jul 2002 18:17:05 +0200
On Tuesday, July 30, 2002, at 11:23 PM, Aidas wrote:
Hi,
I want to know and handle closing of two windows called "first" and
"second". How could I do this? If you can please add example too.
Have a look at the documentation for NSWindow.
You need to add a delegate to your Window and then handle one or both of
these methods:
- (void)windowWillClose:(NSNotification *)aNotification
- (BOOL)windowShouldClose:(id)sender;
in your delegate.
_______________________________________________
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.