• 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: Change NSCell subclass for NSTableColumn via subclassing in IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change NSCell subclass for NSTableColumn via subclassing in IB?


  • Subject: Re: Change NSCell subclass for NSTableColumn via subclassing in IB?
  • From: Esteban Uribe <email@hidden>
  • Date: Fri, 28 Feb 2003 11:42:41 -0800

Hi,

On Friday, February 28, 2003, at 09:30AM, Tim Coffman <email@hidden> wrote:

> Can I change the NSCell subclass used in a particular NSTableColumn in a NSTableView by selecting a custom class for NSTableColumn in Interface Builder? Thus, I would create a subclass of NSTableColumn which chooses its own dataCell at init time. Will this work? Will this enable me to avoid writing code for awakeForNib for every nib file?

Assuming you are using the same NSTableColumn subclass for each nib, or at least a very similar one you can subclass NSTableColumn (call it MyLeetTableColumn) and share the subclass across nibs...in which case every nib with an NSTableView using this MyLeetTableColumn, will execute the same awakeFromNib code, with unique data cell...

-Esteban
_______________________________________________
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.

  • Prev by Date: Re: Displaying multiple windows in one sheet
  • Next by Date: Re: Really frustrated with NSButtonCell
  • Previous by thread: Re: Cursor Hell
  • Next by thread: [ANN] PreFab UI Browser 1.0.1
  • Index(es):
    • Date
    • Thread