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

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

Reply via email to