Database Interaction-help!!
Database Interaction-help!!
- Subject: Database Interaction-help!!
- From: k barnd <email@hidden>
- Date: Mon, 19 Nov 2001 07:41:37 -0800 (PST)
i am using java to code a cocoa app. i have been stuck
for a while now trying to figure out how i can
interact with my database. i am trying to do a simple
fetch to EOModel. With the following code i get an
incompatible type error. can someone point me in the
right direction with my code.
NSArray array;
EOEditingContext ec = new EOEditingContext();
array = EOUtilities.objectsMatchingKeyAndValue(ec,
"User", "firstName", "John");
String name =
((User)array.objectAtIndex(0)).firstName();
thanks,
Kevin
Find the one for you at Yahoo! Personals
http://personals.yahoo.com