• 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: NSTableView, NSArrayController, and ImageAndTextCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView, NSArrayController, and ImageAndTextCell


  • Subject: Re: NSTableView, NSArrayController, and ImageAndTextCell
  • From: Alastair Houghton <email@hidden>
  • Date: Sat, 8 Nov 2003 14:43:39 +0000

On 8 Nov 2003, at 13:51, Vincent Coetzee wrote:

> Hi Alistair,
>
> Yes you are correct I was confusing setObject: with
> setRepresentedObject:. I presume by saying "it's ironic" you mean that
> Apple should have taken heed of this discussion and done something
> about ?

No, the (slight) irony was that you were concerned that it wouldn't be
re-usable, when the indications are (from the frequency with which this
question is asked) that virtually every program out there contains an
NSCell subclass that does exactly this (displays an image and some
text, I mean).

-setRepresentedObject: isn't really very useful for most NSTableViews
anyway, because normally you have a single cell object per column (and
you can even share the cell across multiple columns), so the cell can't
really be used to store pointers back to the data. In many ways,
that's no bad thing, because it keeps the view and model separate (and
makes the view objects more re-usable than they would otherwise).

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: 
 >NSTableView, NSArrayController, and ImageAndTextCell (From: Kurt Marek <email@hidden>)
 >Re: NSTableView, NSArrayController, and ImageAndTextCell (From: mmalcolm crawford <email@hidden>)
 >Re: NSTableView, NSArrayController, and ImageAndTextCell (From: Alastair Houghton <email@hidden>)
 >Re: NSTableView, NSArrayController, and ImageAndTextCell (From: Vincent Coetzee <email@hidden>)

  • Prev by Date: Re: where's the scripts menu in Xcode?
  • Next by Date: Re: Archiving performance (was: Re: (no subject))
  • Previous by thread: Re: NSTableView, NSArrayController, and ImageAndTextCell
  • Next by thread: Blue default button?
  • Index(es):
    • Date
    • Thread