NSCell drawing
NSCell drawing
- Subject: NSCell drawing
- From: Michael Watson <email@hidden>
- Date: Sun, 11 Feb 2007 20:13:57 -0500
When overriding NSCell's -drawWithFrame:inView: and -
drawInteriorWithFrame:inView: methods to perform custom drawing in a
control, is it necessary to lock focus on the inView: parameter
before drawing? Some exploration with breakpoints seems to suggest
that focus is locked onto the context of the control before these
methods, therefore it wouldn't be necessary, but I'm not quite sure
I'm correct.
Currently, I lock and unlock around drawing calls inside these two
methods. Is it safe to remove the lock/unlock pairs? (Removing them
doesn't seem to affect the drawing itself, and if I can save a few
messages, I'd like to.)
--
m-s
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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