Re: Custom NSTextField Cell
Re: Custom NSTextField Cell
- Subject: Re: Custom NSTextField Cell
- From: SA Dev <email@hidden>
- Date: Tue, 2 Aug 2005 16:33:45 -0400
Then you will need to also subclass NSTextField and have it
specify your custom cell, rather than its default. Drag the header
for your custom text field to IB, then use the Custom Class palette
to tell your pre-configured text field to use your custom class
instead of NSTextField.
Does that work for you?
On Aug 2, 2005, at 4:06 PM, Todd Yandell wrote:
On Aug 2, 2005, at 2:54 PM, SA Dev wrote:
How about on awakeFromNib, you tell your text field -
setCell:myCustomCellInstance ... ?
Yes, that works. But the problem is doing that loses all of the
configuration I set in IB. It all goes back to the default settings
(control size, font size, etc.). It doesn't make any sense to get
it all set up in IB, just to redo it in code. I'm looking for a way
to substitute my class and still keep all of the values I set in IB.
Thanks!
Todd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden