Re: Opening a NSPanel in the current virtual desktop instead of the one the app is in
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 16:11:00 +0300
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
_______________________________________________
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