• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSCell drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCell drawing
      • From: "Alan Smith" <email@hidden>
  • Prev by Date: NSObjectController and setManagedObjectContext:
  • Next by Date: Re: Very strange Cocoa application issue.
  • Previous by thread: NSObjectController and setManagedObjectContext:
  • Next by thread: Re: NSCell drawing
  • Index(es):
    • Date
    • Thread