Little HELP with a fetch Request in Core Data
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