I've got a core data app that has 2 entities, product and status, and a relationship between them.

I'll be importing and updating some of the data in the app from csv files supplied from an outside source. The 'status' is just given as a string. There are 3 options, Low Stock, Out of Stock, and In Stock.

As I import, I can create new products, and set the attributes, and I think I know how to set the relationship once the status is defined, but I need to select it first.

I'm looking for something that does something like

[status selectObjectWithValue:@"Low Stock"]

or do I need to loop through the array each time. It's only a few but seems excessive to loop through it?

Many Thanks

Amy



_______________________________________________

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