Re: Window moved when dock appears.

2008-04-14 Thread Mohsan Khan
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 K

Re: Window moved when dock appears.

2008-04-14 Thread Uli Kusterer
Am 13.04.2008 um 19:56 schrieb Mohsan Khan: I have a window (NSBorderlessWindowMask), this window gets pushed away when my Dock appears from being hidden. How can I bypass this behaviour for my window? I think you should override: - (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(N

Re: Window moved when dock appears.

2008-04-14 Thread Kyle Sluder
On Sun, Apr 13, 2008 at 1:56 PM, Mohsan Khan <[EMAIL PROTECTED]> wrote: > How can I bypass this behaviour for my window? First, unless your window does not need to be clickable or visible at all, don't do this. Pro Tools doesn't move when the dock pref is changed, and it annoys the hell out of m

Re: Window moved when dock appears.

2008-04-13 Thread Seth Willits
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 app

Re: Window moved when dock appears.

2008-04-13 Thread Michael Watson
What is your window for, exactly? Why don't you want it to respect the Dock? Most users get annoyed when windows don't respect the Dock area. -- m-s On 13 Apr, 2008, at 13:56, Mohsan Khan wrote: Hi I have a window (NSBorderlessWindowMask), this window gets pushed away when my Dock appears

Window moved when dock appears.

2008-04-13 Thread Mohsan Khan
Hi I have a window (NSBorderlessWindowMask), this window gets pushed away when my Dock appears from being hidden. 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 abo