Re: Instantiating NSCells in Interface Builder
Re: Instantiating NSCells in Interface Builder
- Subject: Re: Instantiating NSCells in Interface Builder
- From: Chris Hanson <email@hidden>
- Date: Wed, 4 Jun 2003 17:35:56 -0500
On Wednesday, June 4, 2003, at 10:16 AM, Daniel Zitter wrote:
Since cells aren't particularly useful without their associated
controls, directly instantiating a cell isn't the way to go in
Interface Builder. (This must be documented somewhere, but I cannot
find it at the moment.)
Cells can be quite useful without associated controls. For instance,
it would be very useful and clean to be able to instantiate a cell in
Interface Builder, set its properties, and then set it as the data cell
for an NSTableColumn or NSBrowser. This would remove the need to
instantiate the cell in code in the controller's -awakeFromNib and set
it up by hand there.
I filed a feature request in RADAR a couple years ago (I think) asking
for this ability. As far as I'm concerned, it should be possible to
instantiate *anything* that supports NSCoding in Interface Builder; it
should be up to the developer to make sure that doing so makes sense in
their particular case.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.