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

Re: EODisplayGroup


  • Subject: Re: EODisplayGroup
  • From: Art Isbell <email@hidden>
  • Date: Fri, 18 Jun 2004 09:45:35 -1000

On Jun 18, 2004, at 2:56 AM, Yves Custeau wrote:

I just could not figure out how to use the API to make a specific record the
current (or selected) record to use functions like:
selectedObjectValueForKey().


I was successful this morning using the following method
anEOdg.setSelectionIndexes(new NSArray(selectionNumber));

That method is useful if you have an index.

But if you have a value that is within the data? I still cannot understand
how I could use the following function to search:
anEOdg.selectObject(personObj);


Where do you get that "personObj" from to perform the selection ? What type
of object is it?


For example if the user types the Product_Number in a textfield, how can I
use this function to search for the object that has Product_Number == 10
and make that Object the current (or selected) object??

I do these sorts of operations frequently with little trouble. However, I never use a WODisplayGroup. Have you considered using an EOEditingContext with arrays of EO's instead? There are methods for searching, sorting, etc. these arrays of EO's without worrying about selected objects and other WODisplayGroup concepts. About the only thing I use a WODisplayGroup for is when I need to display batches of fetched EO's. Seems like you're struggling unnecessarily.


Aloha,
Art
_______________________________________________
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: 
 >Re: EODisplayGroup (From: Yves Custeau <email@hidden>)

  • Prev by Date: Re: Just checking... XCode 1.2 & WO?
  • Next by Date: Re: Article on Java 1.4.2 vs C++ speed
  • Previous by thread: Re: EODisplayGroup
  • Next by thread: Help with MySQL and Unicode (UTF8)
  • Index(es):
    • Date
    • Thread