• 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
Reading cab into object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reading cab into object


  • Subject: Reading cab into object
  • From: Mark Bateman <email@hidden>
  • Date: Fri, 3 Apr 2009 17:18:46 -0400

Hi
I have a csv file I want to use as a source for a searchable list

The csv has 16 fields. I have managed to read the csv line by line into an array

I'm having difficulty figuring out how to load an instance of an object with the single line of the array and initialising each of the objects properties with the fields seperated by commas

What am I missing. Should I load an intermediate array using ComponentsSeparatedByString method. Even so how do I then initialize the custom object fields

Mark
_______________________________________________

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: Reading cab into object
      • From: Marcel Weiher <email@hidden>
  • Prev by Date: Re: user access privileges to plist in /library/preferences
  • Next by Date: Re: How to animate the drawing of UIImages inside a drawRect: method of a UIView?
  • Previous by thread: best practice for dealing with saving/loading preferences.
  • Next by thread: Re: Reading cab into object
  • Index(es):
    • Date
    • Thread