• 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: show and hide NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: show and hide NSWindow
      • From: "Shawn Erickson" <email@hidden>
References: 
 >Re: show and hide NSWindow (From: "Gurmit Teotia" <email@hidden>)
 >Re: show and hide NSWindow (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Newbe Question: Searching Address Book
  • Next by Date: [Q] C++ object as an Notification observer?
  • Previous by thread: Re: show and hide NSWindow
  • Next by thread: Re: show and hide NSWindow
  • Index(es):
    • Date
    • Thread