• 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: NSWindow and setLevel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSWindow and setLevel


  • Subject: RE: NSWindow and setLevel
  • From: "Aragao, Andre Augusto de (Andre)" <email@hidden>
  • Date: Wed, 28 Jul 2010 13:33:55 -0600
  • Thread-topic: 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

References: 
 >NSWindow and setLevel (From: "Aragao, Andre Augusto de (Andre)" <email@hidden>)
 >Re: NSWindow and setLevel (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Modal phone calls?
  • Next by Date: Re: Popup button cells in a table view
  • Previous by thread: Re: NSWindow and setLevel
  • Next by thread: Transparent IKImageBrowserView
  • Index(es):
    • Date
    • Thread