• 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: What is the equivalent Cocoa window level of Carbon kUtilityWindowClass?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the equivalent Cocoa window level of Carbon kUtilityWindowClass?


  • Subject: Re: What is the equivalent Cocoa window level of Carbon kUtilityWindowClass?
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 02 Aug 2012 12:24:26 -0400

On Jul 19, 2012, at 3:47 PM, Volker Schumacher wrote:

> I am working on a cocoa application that creates both normal cocoa windows and cocoa windows that are initialized with carbon windows. All windows should be floating above all applications. For the cocoa windows i set the window level to NSTornOffMenuWindowLevel, and for the carbon windows i use kUtilityWindowClass. Both works fine, windows are floating above other applications, but the problem is that carbon and cocoa windows don't have the same window level, so carbon windows will always float on top of cocoa windows. is there a way of giving both window types the same window level without loosing the floating above other apps? i guess since kUtilityWindowClass seems to the only window class which enables floating about other apps in carbon, i am looking for its equivalent in cocoa…

Use an NSPanel and set it to be floating (-[NSPanel setFloatingPanel:]).  If you must use a window level, I would think that NSFloatingWindowLevel be correspond to a utility window.  (You'd also want to use NSUtilityWindowMask in the style mask.)

Cheers,
Ken


_______________________________________________

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: 
 >What is the equivalent Cocoa window level of Carbon kUtilityWindowClass? (From: Volker Schumacher <email@hidden>)

  • Prev by Date: Re: reading preferences from com.apple.mail under 10.8
  • Next by Date: Rotating a Nib
  • Previous by thread: What is the equivalent Cocoa window level of Carbon kUtilityWindowClass?
  • Next by thread: Threading issue
  • Index(es):
    • Date
    • Thread