Re: Little HELP with a fetch Request in Core Data
Re: Little HELP with a fetch Request in Core Data
- Subject: Re: Little HELP with a fetch Request in Core Data
- From: Alexander Spohr <email@hidden>
- Date: Tue, 16 Mar 2010 19:29:32 +0100
Try
toInvoices.toStatus.statusID = 1001
in your NSPredicate.
atze
Am 16.03.2010 um 14:02 schrieb Gustavo Pizano:
> 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
_______________________________________________
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