• 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
Little HELP with a fetch Request in Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Little HELP with a fetch Request in Core Data


  • Subject: Little HELP with a fetch Request in Core Data
  • From: Gustavo Pizano <email@hidden>
  • Date: Tue, 16 Mar 2010 14:02:07 +0100

Hello.

Well this may be the simplest question ever, but somehow I can't find the answer.

I have an entity User, which has a relationShip to-many Invoices, and Invoices have a relation to-Status, So I have a ManagedObject Im getting for the selection of the NSArrayController, and I want to check all its invoices that statusID (property in status entity) is 1001, for instance.

I have been looking but as far as I understand I make NSFetchRequest and then assign an NSEntityDescritptor, and then the NSPredicate with the properties, but this applies tho the whole enities User, for example.

I dunno what Im getting wrong, but I can't get this to work,

I could do the simple get the NSSet that returns form the toInvoices, then start counting on the toStatus relation, but that doesn't seem nice to do, seems kinda odd.

Thanks for the help

Gustavo

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Little HELP with a fetch Request in Core Data
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: Core Animation and interaction
  • Next by Date: first time launch message
  • Previous by thread: Re: Core Animation and interaction
  • Next by thread: Re: Little HELP with a fetch Request in Core Data
  • Index(es):
    • Date
    • Thread