NSArrayController design/usage question
NSArrayController design/usage question
- Subject: NSArrayController design/usage question
- From: Gregory Holden <email@hidden>
- Date: Sun, 6 Sep 2009 11:41:48 -0400
NSArrayController seems great if you want to point it at repeating
objects, but I can't find any clear way to add that one-off column
that isn't part of the actual model objects (i.e. The "Now Playing"
speaker in itunes, or a column with row numbers - independent of
sorting).
I've tried a couple things myself, but feel the best thing to do is
throw NSArrayController away in these situations, and stick to the
DataSource.
Would this be an accurate assessment? How have others dealt with this
problem?
I did try setting up the bindings AND a datasource on the same table.
It appears to work, but it also seems very dangerous as I'm obviously
still getting requests for the bound data via
tableView:objectValueForTableColumn.
Thanks
Greg
_______________________________________________
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