Re: SMySQL Problems
Re: SMySQL Problems
- Subject: Re: SMySQL Problems
- From: Matt Neuburg <email@hidden>
- Date: Thu, 10 Oct 2002 10:27:36 -0700
On Thu, 10 Oct 2002 12:48:32 +1000, Syphor <email@hidden> said:
>
I'm building a cocoa program in Objective C and I'm using the
>
SMySQL framework to interact with my mysql server. Though I am having
>
some problems.
>
>
theResult = [msqlConnection queryString:@"select * from TestTable"];
>
theFields = [theResult fetchFieldsName];
>
theDict = [theResult fetchRowAsDictionary];
>
NSLog(@"Result - %@", [theDict objectForKey:[theFields
>
objectAtIndex:0]]);
>
>
Anyone got any ideas how to get the right result??
I don't know what SMySQL is or what fetchFieldsName or fetchRowAsDictionary
do. I have found it extremely easy to write my own Cocoa wrapper for the
mysql client library (took about a day) and am having no difficulty
whatever talking to the mysql server. It might be better for you to do this
instead of banging your head against someone else's framework. I would be
glad to send you a sample project that you can steal the code from if you
like; if you want that, write me offline. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.