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

Re: [Repost] Subclassing NSTableColumn


  • Subject: Re: [Repost] Subclassing NSTableColumn
  • From: Andreas Mayer <email@hidden>
  • Date: Sun, 10 Nov 2002 18:20:21 +0100

Am Samstag, 09.11.02 um 09:51 Uhr schrieb Ken Tozier:

but I'm not sure how to get the table to use my subclass rather the the default one.

By just adding it with - (void)addTableColumn:(NSTableColumn *)aColumn probably?

Ideally, I'd like to replace "dataCell" in NSTableColumn with an NSArray and cache the three or four different button and field types in this array. Would I subclass NSTableColumn, add something like a "dataCells" field and override the corresponding accessor methods by writing my own versions with the exact same method name?

I think you'll want to subclass NSCell and add whatever functionality you need there. Then you set your NSCell subclass' object as the NSTableColumn's dataCell with - (void)setDataCell:(NSCell *)aCell.

At least, that's what I would try to do.


bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >[Repost] Subclassing NSTableColumn (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: NSScanner under Mac OS X 10.2 Jaguar and Mac OS X 10.1.x
  • Next by Date: Re: Using "IMP" to speed up loops?
  • Previous by thread: [Repost] Subclassing NSTableColumn
  • Next by thread: Re: Calling a unix command from Cocoa ?
  • Index(es):
    • Date
    • Thread