• 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
NSArrayController design/usage question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSArrayController design/usage question
      • From: Quincey Morris <email@hidden>
    • Re: NSArrayController design/usage question
      • From: Steven Degutis <email@hidden>
  • Prev by Date: Re: Should we release a CGImage created from NSBitmapImageRep ?
  • Next by Date: Re: change in launch services binding behavior?
  • Previous by thread: Re: How to stop NSImage from resizing while calling 'drawInRect' ?
  • Next by thread: Re: NSArrayController design/usage question
  • Index(es):
    • Date
    • Thread