• 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
Re: How to manage (My)SQL data in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to manage (My)SQL data in Cocoa
      • From: "I. Savant" <email@hidden>
References: 
 >How to manage (My)SQL data in Cocoa (From: Michele Barboni <email@hidden>)
 >Re: How to manage (My)SQL data in Cocoa (From: Quincey Morris <email@hidden>)
 >Re: How to manage (My)SQL data in Cocoa (From: dreamcat7 <email@hidden>)

  • Prev by Date: Re: Detect microphone
  • Next by Date: GC and propertyListFromData:mutabilityOption:format:errorDescription:
  • Previous by thread: Re: How to manage (My)SQL data in Cocoa
  • Next by thread: Re: How to manage (My)SQL data in Cocoa
  • Index(es):
    • Date
    • Thread