Re: NSTextField subclass needs cell subclass as well - how?
Re: NSTextField subclass needs cell subclass as well - how?
- Subject: Re: NSTextField subclass needs cell subclass as well - how?
- From: Graham Cox <email@hidden>
- Date: Thu, 08 Oct 2015 14:13:10 +1100
> On 8 Oct 2015, at 11:50 am, Graham Cox <email@hidden> wrote:
>
> I understand that cells are going away, but there currently doesn’t seem to be a replacement for returning a custom field editor for a given text field that doesn’t involve its cell. If there is, and I’ve missed it, that would be a better solution, so maybe someone could point me at what I should be doing.
I should just clarify: I do know about NSWindow and the window delegate’s involvement in returning a Field Editor, but it’s a poor fit for what I want to do in this case, which is to provide a custom Field Editor only for some specific fields, which are loaded dynamically and could end up in any of several different windows, which otherwise need to know nothing about them.
-[NSCell fieldEditorForView:] does exactly what I need, and it’s documented for this exact purpose. Unfortunately it’s a method of NSCell, not of NSControl, and so far it has no replacement in NSControl that can be used as cells are deprecated.
—Graham
_______________________________________________
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