• 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: Any way to force a window under the menu bar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to force a window under the menu bar?


  • Subject: Re: Any way to force a window under the menu bar?
  • From: Iain Holmes <email@hidden>
  • Date: Mon, 26 Jan 2015 11:00:17 +0000

I believe you could do this by setting the window’s level property to kCGDesktopWindowLevelKey
(see https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/index.html#//apple_ref/c/tdef/CGWindowLevelKey <https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/index.html#//apple_ref/c/tdef/CGWindowLevelKey> for the other values available to you)

iain

> On 26 Jan 2015, at 04:39, Trygve Inda <email@hidden> wrote:
>
> I have created a borderless NSWindow. Is there a way to force it to appear
> under the menu bar so that the content of the window shows through the
> translucent menu bar?
>
> The OS seems to be resizing or repositioning my window to prevent it from
> sliding under the menu bar even when positioned programmatically (ie not
> dragging).
>
> Thanks,
>
> Trygve
>
>
>
> _______________________________________________
>
> 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: 
 >Any way to force a window under the menu bar? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Detecting Managed Object Property Change From Undo Redo
  • Next by Date: Re: Detecting Managed Object Property Change From Undo Redo
  • Previous by thread: Re: Any way to force a window under the menu bar?
  • Next by thread: Re: Any way to force a window under the menu bar?
  • Index(es):
    • Date
    • Thread