• 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
Re: Display csv in a tableView with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display csv in a tableView with bindings


  • Subject: Re: Display csv in a tableView with bindings
  • From: Scott Andrew <email@hidden>
  • Date: Sun, 26 Jul 2009 09:04:55 -0700

If x number of objects in your CSV file represent an object, then parse it by hand and put the data into an object that it represents. For example:

Scott Andrew, 40, Computer Programmer

These might get parsed into a contact class that has properties name, age, profession. Then the bindings can be mapped to an array of contacts. This assumes that the values represent an object. Of course there are catch 22's that are mentioned else where in this thread.

Scott

On Jul 24, 2009, at 5:11 PM, email@hidden wrote:

I need some direction please.

I would like to load a csv file and display the contents in an NSTableView. What is the best way to achieve this with bindings?

Should the model store the data in an array of arrays (rows and columns) or a dictionary of arrays (keyed columns and rows)?

_______________________________________________

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

_______________________________________________

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: Display csv in a tableView with bindings
      • From: "I. Savant" <email@hidden>
References: 
 >Display csv in a tableView with bindings (From: email@hidden)

  • Prev by Date: Re: How do I extract the int value from an xml node/element?
  • Next by Date: Re: Display csv in a tableView with bindings
  • Previous by thread: Re: Display csv in a tableView with bindings
  • Next by thread: Re: Display csv in a tableView with bindings
  • Index(es):
    • Date
    • Thread