• 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: Core Data: using array operators in a fetch spec?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: using array operators in a fetch spec?


  • Subject: Re: Core Data: using array operators in a fetch spec?
  • From: Scott Ellsworth <email@hidden>
  • Date: Wed, 17 Aug 2005 10:47:44 -0700


On Aug 17, 2005, at 9:50 AM, Terrence Talbot wrote:

A shorthand way to express this would be to ask for all managers where "employees.@count >= 5". Very easy to express, but apparently not useable, at least as formulated above, in a fetch specification. Please correct me if I'm wrong.

I, too, would like the answer to this. The one that I keep needing is 'all relatedthingies to entity where relatedthingies.attribute >= max(relatedthingies.attribute)-2' to get the ones near the top of the range.


I solved this by bringing all entities into RAM and iterating by hand, but I do not find that very satisfying.

Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Core Data: using array operators in a fetch spec? (From: Terrence Talbot <email@hidden>)

  • Prev by Date: Core Data: using array operators in a fetch spec?
  • Next by Date: Proper way to express relationships between classes
  • Previous by thread: Core Data: using array operators in a fetch spec?
  • Next by thread: Proper way to express relationships between classes
  • Index(es):
    • Date
    • Thread