Re: Temporarily Hide Window
Re: Temporarily Hide Window
- Subject: Re: Temporarily Hide Window
- From: Shoaib Hannani <email@hidden>
- Date: Mon, 9 Oct 2006 08:00:16 -0500
[NSWindow orderOut:sender] will hide the window but when the window
is restored using orderFront:, the sheet is gone.
I also tried setting the alpha of both the window and its attached
sheet to 0.0, as suggested by Patrick, but this leaves a grey
horizontal line (the opening where the sheet slides out of) on the
screen.
Any other ideas on how a window and it's attached sheet can be
temporarily hidden and then restored?
My only other choice at the moment is to be to keep track of the
sheet that is currently showing, and re-displaying the sheet when the
window is restored.
Thanks, Shoaib
On Sep 18, 2006, at 2:32 PM, Nick Kreeger wrote:
You can also try the NSWindow method |orderOut:| ->
[NSWindow orderOut:aSender];
- Nick
On 9/17/06, PGM < email@hidden> wrote:
Maybe you can use (typed in Mail):
[window setAlphaValue: 0.0];
[[window attachedSheet] setAlphaValue:0.0];
Setting the alpha to zero makes the window also invisible to events,
if you want to make the window reappear just set the alpha back to
1.0 again.
Best, Patrick
On 17-Sep-06, at 21:17 PM, Shoaib Hannani wrote:
> I would like to temporarily "hide" a window that has a sheet
> showing, and then show it later in its original state (with the
> sheet).
>
> If I just the close the window and then show it again, the sheet
> disappears and the window stops accepting keyboard events (mouse
> events continue to be accepted).
>
> I'd like to know if there's a way to do what I want. As always, any
> help is greatly appreciated.
>
> Thanks.
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40sympatico.ca
>
> This email sent to 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:
40gmail.com
This email sent to 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