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: [email protected]
[mailto:[email protected]] 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: [email protected]
[mailto:[email protected]] 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 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/aragao%40avaya.com

This email sent to [email protected]
_______________________________________________

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/aragao%40avaya.com

This email sent to [email protected]
_______________________________________________

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