• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Which field is the NSTextFieldCell drawing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Which field is the NSTextFieldCell drawing? (From: "K. Darcy Otto" <email@hidden>)
 >Re: Which field is the NSTextFieldCell drawing? (From: Jim Correia <email@hidden>)
 >Re: Which field is the NSTextFieldCell drawing? (From: "K. Darcy Otto" <email@hidden>)

  • Prev by Date: Re: File formats for multi-doc app: packages, single files or zipped alternatives
  • Next by Date: Re: File formats for multi-doc app: packages, single files or zipped alternatives
  • Previous by thread: Re: Which field is the NSTextFieldCell drawing?
  • Next by thread: Re: Which field is the NSTextFieldCell drawing?
  • Index(es):
    • Date
    • Thread