Re: Which field is the NSTextFieldCell drawing?
Re: Which field is the NSTextFieldCell drawing?
- Subject: Re: Which field is the NSTextFieldCell drawing?
- From: Jim Correia <email@hidden>
- Date: Sun, 17 May 2009 13:57:28 -0400
On Sun, May 17, 2009 at 12:08 PM, K. Darcy Otto <email@hidden> wrote:
> Thank you. The thing is, the cell object returned by
> -tableView:willDisplayCell:forTableColumn:row: is not from my
> NSTextFieldCell subclass but rather the superclass – even though it is the
> subclass doing the drawing. Any idea how to address the subclass object
> directly?
The instance passed to -tableView:willDisplayCell:forTableColumn:row:
is the same instance that is used to draw the cell.
If you are seeing an instance of NSTextFieldCell instead of an
instance of MyFancyTextFieldCell, you must have a configuration issue.
How are you setting up the table column for your cell subclass?
Jim
_______________________________________________
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