On Nov 10, 2008, at 12:39 PM, dreamcat7 wrote:

Sorry maybe i should have clarified that but i believed that Quincey had already explained about the datasource methods. You *must* (if you dont want to end up in a heap of self-inflicted mess) represent your data in those way - WHEN you intend to link to an NSTableView using bindings.

Again, as I stated in my first reply, no, you don't.

All that's required is that you implement the relevant KVC-/KVO- compliant accessor methods. Provided that you do, how you represent the data behind them is, as with the data source methods, entirely up to you -- for the same reason I.S. noted for the data source methods. Per Quincey's reply, it's certainly the case that the most natural fit is going to be if you use an array, but that's not the same as saying that you *must* adopt a particular way of representing your data.

mmalc


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to