Re: Subclassing NSTextFieldCell
Re: Subclassing NSTextFieldCell
- Subject: Re: Subclassing NSTextFieldCell
- From: "Michael Ash" <email@hidden>
- Date: Sun, 3 Sep 2006 15:28:27 -0400
On 9/3/06, email@hidden <email@hidden> wrote:
I've had a look on Google, the list archives, and I must be searching
for the wrong terms, because I can't find any useful details on how to
subclass an NSTextFieldCell.
I'm trying to get custom behaviour in an NSTableView, and have found
out how to set the column's cell by dragging an NSTextFieldCell onto
the column, and clicking the white triangle, selecting a custom class.
Reading the documentation, - (id)initTextCell:(NSString *)aString; is
the designated initializer, but that never gets called. Neither does
initImageCell.
+ initialize gets called, so I know the class is being used, but it's
just not doing what I'd expect.
Has anyone got a link to a decent tutorial on the subject?
initWithCoder: is sent to all objects in a nib except for top-level
objects instantiated in the nib itself (those just get -init) and any
CustomViews (those get -initWithFrame:).
Mike
_______________________________________________
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