• 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: [Newbie] Using FetchSpecs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] Using FetchSpecs


  • Subject: Re: [Newbie] Using FetchSpecs
  • From: Arturo PĂ©rez <email@hidden>
  • Date: Fri, 30 Apr 2004 19:21:57 -0400

On Apr 30, 2004, at 5:57 PM, Lucas Haley wrote:

Heya all --

I guess my question now is whether I need to get a new fetchSpec, as in
the code below, or if I just use the  WODisplayGroup created when I
dragged the fetchSpec into Builder.


WODisplayGroup is way overkill for this.  I think all you need is

NSDictionary = new NSDictionary(new Object[] { user, password },
new Object[] { "username", "password" }); // these are the $parameters in the fetchspec
NSArray users = EOUtilities.objectsWithFetchSpecificationAndBindings(session().defaultEd itingContext(),
"D20members", "login", userAndPw);


Don't forget to encrypt the password.

----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >[Newbie] Using FetchSpecs (From: Lucas Haley <email@hidden>)

  • Prev by Date: Re: [Newbie] MySQL "PASSWORD" in WO?
  • Next by Date: EOM: Keeping two Schemas in Synch
  • Previous by thread: [Newbie] Using FetchSpecs
  • Next by thread: Re: [Newbie] Using FetchSpecs
  • Index(es):
    • Date
    • Thread