• 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: How To retrieve the Relationsships from an entity in Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How To retrieve the Relationsships from an entity in Core Data


  • Subject: Re: How To retrieve the Relationsships from an entity in Core Data
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 16 Dec 2005 00:12:41 -0800


On Dec 15, 2005, at 11:41 PM, Janakiram wrote:
[aRequest setPredicate:[NSPredicate predicateWithFormat:@"salary >= %f and departments.DeptID == %@ ",10000.0,2]]; // where dept id is 2.

One other issue: is there any reason why you're using the department ID attribute, instead of just the object?

[NSPredicate predicateWithFormat:@"(salary >= %f) and (ANY departments == %@)",
10000.0, selectedDepartment]

mmalc

_______________________________________________
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: 
 >How To retrieve the Relationsships from an entity in Core Data (From: Janakiram <email@hidden>)
 >Re: How To retrieve the Relationsships from an entity in Core Data (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Memory Tracking
  • Next by Date: Re: Memory Tracking
  • Previous by thread: Re: How To retrieve the Relationsships from an entity in Core Data
  • Next by thread: Memory Tracking
  • Index(es):
    • Date
    • Thread