On Nov 10, 2008, at 7:36 AM, dreamcat7 wrote:

For NSTableView you MUST follow Quincey's conventions for the data representation.

No, you don't.
Quincey's statement that "the most natural "fit" with a NSTableView would probably be an array of dictionaries" is true, but there is no *need* to follow that.


If you do not then simply the NSTableView control will not work. This is due to some very specific restrictions and limitations in the NSTableView Cocoa class.

NSTableView does not place any restriction on the way its data is *represented*, just how it is *provided*.


Those representation will enable you to utilize some helper classes such as NSArrayController (and NSSortDescriptors for sorting) and perhaps certain parts of the Bindings / KVC will become relevant to you.

Again, Quincey's suggestion will provide the most natural fit with the KVC-compliant accessory, but this API too is designed to be independent of the underlying data representation.

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