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: Quincey Morris <email@hidden>
- Date: Wed, 07 Oct 2015 20:33:56 -0700
- Feedback-id: 167118m:167118agrif8a:167118sA459inBzy:SMTPCORP
On Oct 7, 2015, at 17:50 , Graham Cox <email@hidden> wrote:
>
> I’d rather do it in code, because I have hundreds of these fields and it would be a lot simpler to simply set the cell class once in code instead of hundreds of times in IB.
On Oct 7, 2015, at 20:13 , Graham Cox <email@hidden> wrote:
>
> 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
These statements sound a bit contradictory to me, but never mind. You’re asking about swapping out the cells of text fields programmatically. Is is technically impossible for you to swap out the text fields themselves? (If necessary, by loading the affected controls uncustomized at first, then replacing them with customized ones loaded from a text field nib that has a custom cell set in IB?)
_______________________________________________
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