Le 9 août 2010 à 19:03, Kyle Sluder a écrit : > Oops. We have custom analogues of NSTextFieldCell that allow us to > specify an NSTextStorage in -setObjectValue:. I forgot that > NSTextFieldCell doesn't let you do this; it always uses its own layout > manager. > > I believe you will need to implement drawing yourself.
Hmmm. I was thinking about something, but it maybe stupid. If I back the NSTextField with a CALayer, it will get the glyphs drawn on it, no? Then I could snapshot the CALayer in the -resignFirstResponder: method, somehow make a copy that I would overlay, and then return to normal behavior on -becomesFirstResponder:? That would save the burden of laying out glyphs by myself. Vincent_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
