Re: Window moved when dock appears.
Re: Window moved when dock appears.
- Subject: Re: Window moved when dock appears.
- From: Mohsan Khan <email@hidden>
- Date: Tue, 15 Apr 2008 00:36:34 +0200
Thanks, this does the trick!
- (void)setFrame: (NSRect)frameRect
display: (BOOL)flag
{
#pragma unused( frameRect, flag )
[super setFrame: myRect
display: YES];
}
On må 14 apr 2008, at 05.00, Seth Willits wrote:
On Apr 13, 2008, at 10:56 AM, Mohsan Khan wrote:
I have a window (NSBorderlessWindowMask), this window gets pushed
away when my Dock appears from being hidden.
Huh. I wouldn't expect it to do that given that it's borderless.
How can I bypass this behaviour for my window?
Should I use applicationDidChangeScreenParameters and reposition
the window, or is there an option to make my window not care about
the Dock appearing?
It'd probably be easier to just override setFrame in a window
subclass and make sure it's always what it should be. Just a thought.
--
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