• 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: Opening a NSPanel in the current virtual desktop instead of the one the app is in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening a NSPanel in the current virtual desktop instead of the one the app is in


  • Subject: Re: Opening a NSPanel in the current virtual desktop instead of the one the app is in
  • From: Stefan Balu <email@hidden>
  • Date: Wed, 27 May 2009 18:04:35 +0300

Actually it didn't fix everything. If I close (and not release) the
pannel, go to a different space, when the panel is to be displayed it
will move me to where it previously was.

So, the code below only unties the panel from the main window,
however, if my panel is to be closed, when i call makeKeyAndOrderFront
on it, it will move me to where it previously was befor i closed it.

I don't want to release it on close, just hide, but it must show on
the current space (that is, a different one than where i hide the
pannel)

On Wed, May 27, 2009 at 4:11 PM, Stefan Balu <email@hidden> wrote:
> Fixed.
>
>        [NSApp activateIgnoringOtherApps:YES];
>        [panel setCollectionBehavior:NSWindowCollectionBehaviorDefault|NSWindowCollectionBehaviorMoveToActiveSpace];
>        [panel makeKeyAndOrderFront:self];
>
>
> On Wed, May 27, 2009 at 3:16 PM, Stefan Balu <email@hidden> wrote:
>> Hey all,
>>
>> I am trying to open a NSPanel in the current virtual desktop, however,
>> it moves me to the virtual desktop where the main NSWindow resides.
>> How can I force a NSPanel to open in the current virtual desktop?
>>
>> --
>> Ștefan BĂLU
>> Tel: +40726 252 799
>>
>
>
>
> --
> Ștefan BĂLU
> Tel: +40726 252 799
>



--
Ștefan BĂLU
Tel: +40726 252 799
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Opening a NSPanel in the current virtual desktop instead of the one the app is in (From: Stefan Balu <email@hidden>)
 >Re: Opening a NSPanel in the current virtual desktop instead of the one the app is in (From: Stefan Balu <email@hidden>)

  • Prev by Date: Re: Opening a NSPanel in the current virtual desktop instead of the one the app is in
  • Next by Date: New Reporting Tool Now in Beta
  • Previous by thread: Re: Opening a NSPanel in the current virtual desktop instead of the one the app is in
  • Next by thread: New Reporting Tool Now in Beta
  • Index(es):
    • Date
    • Thread