Re: NSTableView, NSArrayController, and ImageAndTextCell
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.