Re: Drawing invisible window. was Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Michael Ash
On Sat, May 15, 2010 at 3:48 PM, Philip White wrote: > > On May 15, 2010, at 2:31 PM, Philip White wrote: > > I wrote this: > >> -(void)display >> { >>       /* seems to be unnecessary? >>       NSGraphicsContext *context = [NSApp context]; >>       NSGraphicsContext *oldContext = [NSGraphicsConte

Drawing invisible window. was Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Philip White
On May 15, 2010, at 2:31 PM, Philip White wrote: I wrote this: > -(void)display > { > /* seems to be unnecessary? > NSGraphicsContext *context = [NSApp context]; > NSGraphicsContext *oldContext = [NSGraphicsContext currentContext]; > [NSGraphicsContext setCurrentContext:c

Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Philip White
On May 15, 2010, at 12:43 PM, Scott Ribe wrote: > If you can't get a direct answer to your question, could you create a > subclass of NSWindow with a couple of very simple overrides: > > - (void) display > {} > > - (void) displayIfNeeded > {} > > You couldn't leave it out lest it muck with ev

Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Jesper Storm Bache
I have only had the reverse problem (in some cases I need to circumvent AppKit mechanism), but have you looked at [NSWindow constrainFrameRect:frameRect toScreen:screen]: http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference

Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Philip White
> If you can't get a direct answer to your question, could you create a > subclass of NSWindow with a couple of very simple overrides: > > - (void) display > {} > > - (void) displayIfNeeded > {} > > You couldn't leave it out lest it muck with event handling, but you could > order it in, positi

Re: Forcing ordered-out-window to adjust position

2010-05-15 Thread Scott Ribe
If you can't get a direct answer to your question, could you create a subclass of NSWindow with a couple of very simple overrides: - (void) display {} - (void) displayIfNeeded {} You couldn't leave it out lest it muck with event handling, but you could order it in, position it, check its posit