Re: show and hide NSWindow
Re: show and hide NSWindow
- Subject: Re: show and hide NSWindow
- From: "Gurmit Teotia" <email@hidden>
- Date: Wed, 3 May 2006 11:04:01 +0530
Mine is a multiple window application. Only main window is displayed at load
time. Other windows, which I have created in seperate nib file, shown
according to commands received from a server, which this application is
connected to.
I want to display these windows in dock bar(minimized state) instead of
directly poping up on screen while displaying them first time. Later on user
can maximize these windows from dock bar as per his/her convinience.
Currently I'm using a workaround to achieve this functionality. Here is the
code snippet:
* [window showWindow:nil];*
* [window miniaturize:nil];*
But as visible, above code first display the window on screen and then
minimize it. It looks little irritating. I want to show the window in
minimized (in dock bar) without displaying it on screen but I'm not getting
any API for that.
In second issue I want to hide the window even if it's in minimized state(
in dock bar) but API I'm using can not hide the window if it is minimized so
I'm using following workaround for it:
* if([window isMiniaturized])*
* {*
* [window deminiaturize:nil];*
* }*
* [window orderOut:nil];*
Again as visible above code first show the window on screen and then hide
it. I want to hide the window even if it's minimized without poping it up on
screen.
Please advise how I can achieve above funtionality.
Regards,
Gurmit
On 5/2/06, Andreas Mayer <email@hidden> wrote:
Am 02.05.2006 um 17:38 Uhr schrieb Gurmit Teotia:
> Is that question too bad to answer? I'd really appreciate any help
> on this
> topic.
You might want to explain further
- what you mean by 'minimized'
- what exactly your problem is
Andreas
_______________________________________________
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
_______________________________________________
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