Re: Re: Hide a window on close?
Re: Re: Hide a window on close?
- Subject: Re: Re: Hide a window on close?
- From: "Craig Dooley" <email@hidden>
- Date: Thu, 14 Sep 2006 14:35:10 -0400
I also wanted to have the window come back when the dock icon is
clicked again, which didn't happen if i used orderOut: I could have
made the app quit when the window is closed (there's only ever one
window), but I tend to use apps like mail and newsfire and close them
when I don't plan on coming back immediately. I like that they come
right back to where I was previously when I re-activate them.
-Craig
On 9/14/06, j o a r <email@hidden> wrote:
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
--
-----------------------------------------------------------------------
Craig Dooley <email@hidden>
_______________________________________________
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