Drawing Text in an NSImage
Drawing Text in an NSImage
- Subject: Drawing Text in an NSImage
- From: Seth Willits <email@hidden>
- Date: Thu, 27 Aug 2009 20:13:31 -0700
drawAtPoint/drawInRect in NSString/NSAttributedString says...
"You should only invoke this method when an NSView object has focus."
"Don’t invoke this method while no NSView is focused."
When an image is focused, and you draw text, it'll definitely do wonky
things if the currently focused view is flipped. If we can't use these
methods, are we really supposed to drop down to NSLayoutManager etc
etc to draw a simple string? Is there really no secret API for image-
friendly string drawing? Just want to double check before I have to go
invent one...
--
Seth Willits
_______________________________________________
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