Re: Window "snapping" to main screen

2012-05-21 Thread Eric Matecki
Thanks Quincy, this works ! On 07/05/12 11:56, Eric Matecki wrote: On 07/05/12 09:39, Quincey Morris wrote: On May 7, 2012, at 00:30 , Quincey Morris wrote: On May 7, 2012, at 00:14 , Eric Matecki wrote: mWindow = [[NSWindow alloc] initWithContentRect: contentSize styleMask: styleMask back

Re: Window "snapping" to main screen

2012-05-07 Thread Eric Matecki
On 07/05/12 09:39, Quincey Morris wrote: On May 7, 2012, at 00:30 , Quincey Morris wrote: On May 7, 2012, at 00:14 , Eric Matecki wrote: mWindow = [[NSWindow alloc] initWithContentRect: contentSize styleMask: styleMask backing: NSBackingStoreBuffered defer: YES]; I would assume that the co

Re: Window "snapping" to main screen

2012-05-07 Thread Quincey Morris
On May 7, 2012, at 00:30 , Quincey Morris wrote: > On May 7, 2012, at 00:14 , Eric Matecki wrote: > >>> mWindow = [[NSWindow alloc] initWithContentRect: contentSize styleMask: >>> styleMask backing: NSBackingStoreBuffered defer: YES]; > > I would assume that the content rect is here assumed to

Re: Window "snapping" to main screen

2012-05-07 Thread Quincey Morris
On May 7, 2012, at 00:14 , Eric Matecki wrote: >> mWindow = [[NSWindow alloc] initWithContentRect: contentSize styleMask: >> styleMask backing: NSBackingStoreBuffered defer: YES]; I would assume that the content rect is here assumed to be relative to the main screen. Have you tried 'initWithCon

Re: Window "snapping" to main screen

2012-05-07 Thread Eric Matecki
Hello, nobody has an idea ? On 03/05/12 10:27, Eric Matecki wrote: Hi everybody, I have two screens on my MacPro (10.7.3) When opening a window with the following code : // create a reference rect NSRect contentSize = NSMakeRect( iX, iY, iW, iH ); // allocate window NSUInteger styleMask = N