Re: Hide a window on close?
Re: Hide a window on close?
- Subject: Re: Hide a window on close?
- From: j o a r <email@hidden>
- Date: Thu, 14 Sep 2006 19:50:32 +0200
On 14 sep 2006, at 19.37, Craig Dooley wrote:
Should I make a delegate for windowShouldClose: that hides the window
and returns NO?
Yes, something like this would probably work:
- (BOOL) windowShouldClose:(id) sender
{
[[self window] performSelector: @selector(orderOut:) afterDelay: 0.0];
return NO;
}
It's possible that you don't have to delay the call to "-orderOut:",
but it seems safer to do that, compared with outright closing the
window from a callback of another attempt to close the window...
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden