NSBrowserCell and objects
NSBrowserCell and objects
- Subject: NSBrowserCell and objects
- From: J Tichenor <email@hidden>
- Date: Sun, 19 Sep 2004 21:38:32 +0100
I want to include a pointer in the NSBrowserCell as I am setting it's
title, such than later, when examining the cell, I can refer back to
the original object it points to.
I thought using -setObjectValue and -objectValue would do the trick,
but to implement -setObjectValue I need to also implement copying
protocols in my custom classes, which I don't want to do -- I don't
want a copy of the object, but just a pointer to. I thought I might
override NSBrowserCell, adding a single variable and setter and getter
for it, but can't figure out how to use this custom class.
Is there something that I am missing? It seems strange that one can set
the title of a cell in the browser but not somehow pass along the
object the title is coming from, whether it's a file folder or branch
in a database. Anyone have any thoughts?
TIA -
~j~
James Tichenor
VFX Supervisor
AIM: email@hidden
(07779) 256 103
http://www.lehopictures.com/the_joint/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden