• 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 20:27:38 +0200


On 14 sep 2006, at 20.21, Craig Dooley wrote:

I was able to get the behavior I was looking for with

- (BOOL)windowShouldClose:(id)sender {
	[[NSApplication sharedApplication] hide:self];
	return NO;
}

That's not matching the behaviour of the applications that you cited, but perhaps it's a better behaviour? It's quite likely that if your users close the window, they're about to leave your application in any case.


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

  • Follow-Ups:
    • Re: Re: Hide a window on close?
      • From: "Craig Dooley" <email@hidden>
References: 
 >Hide a window on close? (From: "Craig Dooley" <email@hidden>)
 >Re: Hide a window on close? (From: j o a r <email@hidden>)

  • Prev by Date: Re: Re: Hide a window on close?
  • Next by Date: Re: NSBorderlessWindowMask on a sheet
  • Previous by thread: Re: Re: Hide a window on close?
  • Next by thread: Re: Re: Hide a window on close?
  • Index(es):
    • Date
    • Thread