RE: NSWindow and setLevel
RE: NSWindow and setLevel
- Subject: RE: NSWindow and setLevel
- From: "Aragao, Andre Augusto de (Andre)" <email@hidden>
- Date: Thu, 5 Aug 2010 08:13:58 -0600
- Thread-topic: NSWindow and setLevel
Could anyone describe the behavior of setCollectionBehavior? It is not
changing anything when I'm using a non-default window level (see below).
Thanks in advance,
Andre
-----Original Message-----
From: cocoa-dev-bounces+aragao=email@hidden
[mailto:cocoa-dev-bounces+aragao=email@hidden] On Behalf Of
Aragao, Andre Augusto de (Andre)
Sent: Wednesday, July 28, 2010 4:34 PM
To: Seth Willits; Cocoa-Dev Mailing List
Subject: RE: NSWindow and setLevel
Doesn't work. Here is my code:
[[[[NSApp delegate] mainController] window]
setLevel:NSModalPanelWindowLevel];
[[[[NSApp delegate] mainController] window]
setCollectionBehavior:NSWindowCollectionBehaviorManaged];
[[[[NSApp delegate] mainController] window]
makeKeyAndOrderFront:self];
Same behavior.
Andre
-----Original Message-----
From: cocoa-dev-bounces+aragao=email@hidden
[mailto:cocoa-dev-bounces+aragao=email@hidden] On Behalf Of
Seth Willits
Sent: Friday, July 23, 2010 1:18 AM
To: Cocoa-Dev Mailing List
Subject: Re: NSWindow and setLevel
On Jul 22, 2010, at 12:29 PM, Aragao, Andre Augusto de (Andre) wrote:
> I have a requirement to have the main window for a certain application
> to stay on top of all other windows. What I found out is that if I
> use anything higher than kCGNormalWindowLevel for the NSWindow level,
> I achieve the expected result (for instance: kCGFloatingWindowLevel).
> However, Spaces doesn't work properly. Basically, in this case I can't
> see the window on Spaces anymore, for instance, if I try to show all
> Application Windows (Expose, F9), the window is not displayed.
>
> Suggestions?
-[NSWindow setCollectionBehavior:]
--
Seth Willits
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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