Re: -[NSColor setBackgroundColor:] not working in 10.6
Re: -[NSColor setBackgroundColor:] not working in 10.6
- Subject: Re: -[NSColor setBackgroundColor:] not working in 10.6
- From: Manfred Schwind <email@hidden>
- Date: Fri, 8 Oct 2010 08:46:00 +0200
> - (void)drawRect:(NSRect)rect {
> [...]
> [img drawInRect:rect ...];
> }
Not related to your original problem, but please note that the NSRect passed to drawRect is the dirty area that needs to be redrawn. In many cases this matches self.bounds, but not always. So using this rect as position to draw your image is a bug in this case and might result in unexpected drawing errors.
Regards,
Mani
--
http://mani.de - friendly software
iVolume - listen to music hands-free
LittleSecrets - the encrypted notepad
Sahara - sand in your pocket
Watchdog - baffle the curious
_______________________________________________
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