• 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: Subclassing NSTextFieldCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Subclassing NSTextFieldCell (From: email@hidden)

  • Prev by Date: Re: Imitating Mail's Interface
  • Next by Date: Re: Re: Which is correct? (itemWithTitle & NSlocalizedString
  • Previous by thread: Subclassing NSTextFieldCell
  • Next by thread: Newbie: Basic problem with NSTableview
  • Index(es):
    • Date
    • Thread