How to manage (My)SQL data in Cocoa
How to manage (My)SQL data in Cocoa
- Subject: How to manage (My)SQL data in Cocoa
- From: Michele Barboni <email@hidden>
- Date: Sun, 9 Nov 2008 18:16:16 +0100
Hi,
I'm developing a small application for showing/adding/modifying/
deleting entries for a MySQL database by some NSTableViews.
My (mysql) tables are very simple, all of them has as primary-key and
foreign-key an integer (autoincrement), other columns are varchar() or
text.
Currently I'm querying the database for a column at once, building an
NSArray of them and add all NSArrays (the columns) in a NSMutableArray
("the table").
For editing I'm doing queries in the NSTableView controller (and I
really don't like this).
So, I was wondering if there's a "standard" way for storing sql data
(not sqlite and core data of course..) with Cocoa collections.
For example, I have thought to a NSDictionary with id integers as key
and NSArrays with the rest of the *row* as values, sounds better but
since I'm not an experienced programmer I'm asking..
Thanks,
Michele.
_______________________________________________
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