Re: Any way to force a window under the menu bar?
Re: Any way to force a window under the menu bar?
- Subject: Re: Any way to force a window under the menu bar?
- From: Trygve Inda <email@hidden>
- Date: Mon, 26 Jan 2015 11:05:27 -0800
- Thread-topic: Any way to force a window under the menu bar?
>
>> On 26 Jan 2015, at 05: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).
>
> I think this is done by - (NSRect)constrainFrameRect:(NSRect)frameRect
> toScreen:(NSScreen *)screen, so you could probably just override that to
> return an unchanged rect to get your window under the menu bar.
Nope - while did does prevent the window from resizing, as Eric Schlegel
mentioned, the menu bar background is derived from the desktop picture.
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