Fixed.

        [NSApp activateIgnoringOtherApps:YES];
        [panel 
setCollectionBehavior:NSWindowCollectionBehaviorDefault|NSWindowCollectionBehaviorMoveToActiveSpace];
        [panel makeKeyAndOrderFront:self];


On Wed, May 27, 2009 at 3:16 PM, Stefan Balu <[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to