> On Apr 11, 2017, at 9:49 AM, Gary L. Wade <garyw...@desisoftsystems.com> > wrote: > > If you need lightweight drawing, you could use an NSTextFieldCell, which > should give you some predictability. I don't recall the details, but there > are a number of things that NSTextField does (and NSTextView) that aren't > done with "raw" drawing (borders, margins, font resizing, etc.)
+1. I'm still mystified why regular string drawing doesn't work right (pretty sure I've done it in the past without problems), but if you want to draw something that looks like a control, it's usually best to make a temporary cell and draw it. —Jens _______________________________________________ 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