Re: How to manage (My)SQL data in Cocoa
Re: How to manage (My)SQL data in Cocoa
- Subject: Re: How to manage (My)SQL data in Cocoa
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 10 Nov 2008 10:48:47 -0800
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 (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