• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hide a window on close?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Hide a window on close? (From: "Craig Dooley" <email@hidden>)

  • Prev by Date: NSOutlineView variable width cell
  • Next by Date: Re: NSOutlineView variable width cell
  • Previous by thread: Hide a window on close?
  • Next by thread: Re: Re: Hide a window on close?
  • Index(es):
    • Date
    • Thread