• 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
Does NSMatrix+NSArrayController work for custom cells?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does NSMatrix+NSArrayController work for custom cells?


  • Subject: Does NSMatrix+NSArrayController work for custom cells?
  • From: "Timothy J. Wood" <email@hidden>
  • Date: Wed, 3 Aug 2005 10:46:36 -0700



I have a custom cell class with custom rendering of a custom value class. "titles" mean absolutely nothing to this cell.

I'm not finding this to work. I would expect that I should do the following:

bind the NSMatrix "content" to NSArrayController.arrangedObjects
bind the NSMatrix "contentObjects" to NSArrayController.arrangedObjects as well
- I've also tried binding to 'arrangedObjects.self'
leave the NSMatrix "contentValues" unbound since it is documented to set the title of the cells.
- I've also tried binding to 'arrangedObjects.displayName', which indeed does grab the display name, but as noted above, I want the _object_ value not any string.


If the contentValues (which I guess should be named "contentTitles", really) is unbound, my cells should get sent - setObjectValue:. Instead, the objects are sent -description and forced down the -setStringValue: path.

I've tried various permutations, but nothing has managed to force it to call -setObjectValue: on my cells.

I have to assume this simple and obvious case works -- any idea what an I doing wrong? I've seen this question asked before in the archives, but sadly, no answers.

-tim

_______________________________________________
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


  • Prev by Date: Re: Exception handling help
  • Next by Date: Re: NSOutlineView and the trash can, take 2
  • Previous by thread: Re: Exception handling help
  • Next by thread: Inserting an (int) into an NSMutableArray
  • Index(es):
    • Date
    • Thread