Re: NSResizableWindowMask and view update
Re: NSResizableWindowMask and view update
- Subject: Re: NSResizableWindowMask and view update
- From: Tony Romano <email@hidden>
- Date: Mon, 12 Jul 2010 17:27:44 -0700
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 Sluder wrote:
> On Mon, Jul 12, 2010 at 4:41 PM, Tony Romano <email@hidden> 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 that includes all the regions of the view that need to
> be drawn.
>
> --Kyle Sluder
>
-Tony
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden