• 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
Database Interaction-help!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSWindowController that closes itself, revisited
  • Next by Date: Some questions about cocoa graphics2D
  • Previous by thread: Re: Launching Application with arguments
  • Next by thread: Some questions about cocoa graphics2D
  • Index(es):
    • Date
    • Thread