Re: Drawing Text in an NSImage

2009-08-29 Thread Kyle Sluder
On Aug 29, 2009, at 2:21 PM, Seth Willits wrote: String drawing always happens relative to the view's orientation, not the image's. If the view is flipped and you draw into an image, then draw that image, the string will be upside down. That's the reason I'm assuming they say not to do it.

Re: Drawing Text in an NSImage

2009-08-29 Thread Seth Willits
On Aug 27, 2009, at 9:37 PM, Henry McGilton (Boulevardier) wrote: 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 te

Re: Drawing Text in an NSImage

2009-08-27 Thread Uli Kusterer
On Aug 28, 2009, at 5:13 AM, Seth Willits wrote: 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." I think, for the discussion of this particular API, an NS

Re: Drawing Text in an NSImage

2009-08-27 Thread Henry McGilton (Boulevardier)
On Aug 27, 2009, at 8:13 PM, Seth Willits wrote: 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 defi