Re: NSResizableWindowMask and view update

2010-07-12 Thread Tony Romano
Yep, overlooked that the drawRect will give me the dirty rect. Because the sizing handle is diagonal to the origin (0,0), it looked like it wasn't flipped. Fix the problem by one missing multiply in a calculation. Thanks and it's time to call it day! -Tony On Jul 12, 2010, at 4:54 PM, Kyle

Re: NSResizableWindowMask and view update

2010-07-12 Thread Kyle Sluder
On Mon, Jul 12, 2010 at 4:41 PM, Tony Romano wrote: > During the setStyleMask, the view is sent a drawRect message which is > expected.  But the values in the rect are not flipped and are not the view > bounds. So? The rect argument to -drawRect: is not the size of your view. It is a rectangle

NSResizableWindowMask and view update

2010-07-12 Thread Tony Romano
I have a document based cocoa app with each document window having it's own window controller and view(the view is flipped). I have an option to turn on/off the resize grip and I set the mask using setStyleMask. All this works fine. During the setStyleMask, the view is sent a drawRect message