• 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
NSBrowserCell and objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSBrowserCell and objects
      • From: j o a r <email@hidden>
  • Prev by Date: Re: modal window + sheet
  • Next by Date: Re: How to iterate through IBObjects?
  • Previous by thread: Re: How to iterate through IBObjects?
  • Next by thread: Re: NSBrowserCell and objects
  • Index(es):
    • Date
    • Thread