Re: NSTextView redraw while resigning first responder (sequel)
Re: NSTextView redraw while resigning first responder (sequel)
- Subject: Re: NSTextView redraw while resigning first responder (sequel)
- From: Kyle Sluder <email@hidden>
- Date: Mon, 9 Aug 2010 10:03:50 -0700
On Mon, Aug 9, 2010 at 8:03 AM, vincent habchi <email@hidden> wrote:
> Kyle,
>
> sorry for disturbing you once more.
>
> You suggested I use a custom layout manager for the NSTextField editor. However, I see no way to set a layout editor for a NSTextField – I tried to attach a custom field editor, but it fails the same way (that is to say, the string reverts to its normal state when the field looses first responder status). How should I proceed?
[Bringing this back on-list.]
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.
--Kyle Sluder
_______________________________________________
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