• 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: Instantiating NSCells in Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instantiating NSCells in Interface Builder


  • Subject: Re: Instantiating NSCells in Interface Builder
  • From: Daniel Zitter <email@hidden>
  • Date: Thu, 5 Jun 2003 07:39:39 -0700

On Wednesday, June 4, 2003, at 10:00 PM, email@hidden wrote:

Subject: Re: Instantiating NSCells in Interface Builder
From: Chris Hanson <email@hidden>
To: email@hidden

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.

Huh?

NSBrowser is a control.
NSTableColumn needs to be contained in a NSTableView, which is a control.
Setting a cell to be the data cell of table view's column is associating a cell with a control, albeit one level removed.
So you must agree that without that association, the cell is for the most part useless.


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.


I agree that the way in which IB goes out of its way to defeat the direct creation of cells brings a degree of complexity to configuring controls such as table column's cells which does not seem justified. Let's hope your feature request receives some attention.

Cheers,
Dan
_______________________________________________
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: semantics of init -> Question
  • Next by Date: Re: Instantiating NSCells in Interface Builder
  • Previous by thread: Re: Instantiating NSCells in Interface Builder
  • Next by thread: Re: Instantiating NSCells in Interface Builder
  • Index(es):
    • Date
    • Thread