• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
array contents and objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: array contents and objects
      • From: Pablo Pons Bordes <email@hidden>
  • Prev by Date: Re: data over USB to iPhone
  • Next by Date: Re: array contents and objects
  • Previous by thread: Re: Core Data one to many insert question
  • Next by thread: Re: array contents and objects
  • Index(es):
    • Date
    • Thread