Re: Subviews use superview's `drawRect' method?
Re: Subviews use superview's `drawRect' method?
- Subject: Re: Subviews use superview's `drawRect' method?
- From: Jim Correia <email@hidden>
- Date: Tue, 16 Aug 2005 12:09:20 -0400
On Aug 16, 2005, at 12:03 PM, Damien Sorresso wrote:
On 16 Aug, 2005, at 10:35 AM, Fritz Anderson wrote:
More to the point: Does the box drawRect: stroke the framing
rectangle based on the NSRect passed to it? So that when the
button region is dirty it frames the button?
Here's the code for the `drawRect' method.
[...]
Should I be stroking `bounds' and not `rect'?
If you want to draw your bounds, yes.
The rect you are passed is the aggregate dirty rect, not your bounds.
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSView.html#//apple_ref/doc/uid/
20000014-BBCDGJHF
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden