• 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: Filtering array returned by an EO's relationship (D2J)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering array returned by an EO's relationship (D2J)


  • Subject: Re: Filtering array returned by an EO's relationship (D2J)
  • From: Ray Ackland <email@hidden>
  • Date: Wed, 29 Oct 2003 12:30:56 +1300

On Wednesday, Oct 29, 2003, at 07:34 Pacific/Auckland, Ricardo Strausz wrote:

Did you try dataSource.setAuxiliaryQualifier(aQualifier);

I had been reading up about that on the weekend. Don't know about most people, but I find I need to read the documentation a couple of times, do heaps of experiments to get something going, then read the doc's a few more times to cement the ideas.


My current stage is replacing the standard call for storedValueForKey() with a specific objectsWithFetchSpecification() using the desired target entity, and qualifiers for the related record I am calling from, along with my filter qualifier. Seems to work, and only requests the objects I want (rather than getting all first and then filtering). I also have put in a conditional that the NSArray I am fetching into is null so I don't repeatedly do the fetch.

My only concerns are that I may be missing out on some WO magic, such as the fetched array being refreshed (seems ok in testing though) and that the EOEditingContext recognises the relationship between the source and destination objects.

Now that part is working, I will give the dataSource stuff a go. Will probably take me a week to digest everything, but I would be pleased if the suggested technique works as desired.

Thanks for the help and advice by everyone on this.

Ray.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Filtering array returned by an EO's relationship (D2J)
      • From: Chuck Hill <email@hidden>
References: 
 >Re: Filtering array returned by an EO's relationship (D2J) (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: How to create EOClassDescription in test code?
  • Next by Date: Re: WO522 on Jaguar
  • Previous by thread: Re: Filtering array returned by an EO's relationship (D2J)
  • Next by thread: Re: Filtering array returned by an EO's relationship (D2J)
  • Index(es):
    • Date
    • Thread