No, it does not help. I think since I am not scaling the view or sth.
like that, the difference between frame and bounds should be
irrelevant for this problem.

Tae

On Sat, May 5, 2012 at 6:12 PM, Andy Lee <ag...@mac.com> wrote:
> On May 5, 2012, at 3:31 AM, qvacua wrote:
>> - (void)drawRect:(NSRect)dirtyRect {
>>    [[NSColor yellowColor] set];
>>    NSRectFill([self frame]);
>> }
>
> Using [self frame] is a bug. [self frame] returns a rectangle in the 
> *superview's* coordinate system, whereas NSRectFill expects a rectangle in 
> *self's* coordinate system. Does it help if you correct this to 
> NSRectFill([self bounds])?
>
> --Andy
>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to