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

NSWindow and setLevel


  • Subject: NSWindow and setLevel
  • From: "Aragao, Andre Augusto de (Andre)" <email@hidden>
  • Date: Thu, 22 Jul 2010 13:29:28 -0600
  • Thread-topic: NSWindow and setLevel

Hi,

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?

#define NSNormalWindowLevel          kCGNormalWindowLevel
#define NSFloatingWindowLevel        kCGFloatingWindowLevel
#define NSSubmenuWindowLevel         kCGTornOffMenuWindowLevel
#define NSTornOffMenuWindowLevel     kCGTornOffMenuWindowLevel
#define NSMainMenuWindowLevel        kCGMainMenuWindowLevel
#define NSStatusWindowLevel          kCGStatusWindowLevel
#define NSModalPanelWindowLevel      kCGModalPanelWindowLevel
#define NSPopUpMenuWindowLevel       kCGPopUpMenuWindowLevel
#define NSScreenSaverWindowLevel     kCGScreenSaverWindowLevel
#define NSDockWindowLevel            kCGDockWindowLevel

Andre
_______________________________________________

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

  • Follow-Ups:
    • Re: NSWindow and setLevel
      • From: Seth Willits <email@hidden>
  • Prev by Date: Drag'n Drop Mail.app message to Cocoa app
  • Next by Date: Re: NSWindow and setLevel
  • Previous by thread: Drag'n Drop Mail.app message to Cocoa app
  • Next by thread: Re: NSWindow and setLevel
  • Index(es):
    • Date
    • Thread