Re: Change NSCell subclass for NSTableColumn via subclassing in IB?
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.