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
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
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