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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to