• 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
NSTreeController, NSBrowser image setting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController, NSBrowser image setting


  • Subject: NSTreeController, NSBrowser image setting
  • From: Tony Romano <email@hidden>
  • Date: Tue, 23 Mar 2010 19:22:02 -0700

I'm using a NSTreeController and bindings to contain the data for a NSBrowser.  Data from my objects is being displayed fine.  I want to add an image to the entries in the browser.  From what I gather, I need to implement the willDisplayCell delegate method.  The question I have is how do I get MY object stored for the node being displayed. The documents state you cannot use the itemAt* methods if you did not use a data source, which I didn't.  I did find on the Internet someone else who had a similar problem and the solution they found was call this method [item representedObject].  It's not clear what the receiver 'item' is.  In addition, neither samples ComplexBrowser nor SimpleBrowser use a treecontroller.  Note I am not using core data, my object is my own structure.

Thanks in advance for the help,
-Tony




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTreeController, NSBrowser image setting
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Trouble forking my project
  • Next by Date: Re: NSTreeController, NSBrowser image setting
  • Previous by thread: Re: Toolbar customizer crashes on Leopard when using menu delegate
  • Next by thread: Re: NSTreeController, NSBrowser image setting
  • Index(es):
    • Date
    • Thread