array contents and objects
array contents and objects
- Subject: array contents and objects
- From: Amy Heavey <email@hidden>
- Date: Fri, 14 Jan 2011 14:35:36 +0000
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 (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