Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > displaying csv file in NSTableView

displaying csv file in NSTableView
Thread Tools
Mac Enthusiast
Join Date: Jun 2000
Location: New York, NY
Status: Offline
Reply With Quote
Apr 24, 2005, 11:02 PM
 
Does cocoa have a quick way of displaying a csv file in a tableView or do I have to code it up?
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Apr 25, 2005, 09:34 AM
 
Google is your friend.

(3rd result for "cococa csv")
http://homepage.mac.com/levanj/Cocoa/
     
poulh  (op)
Mac Enthusiast
Join Date: Jun 2000
Location: New York, NY
Status: Offline
Reply With Quote
Apr 25, 2005, 11:45 AM
 
i saw this program i don't want to just edit a csv... i want to do a bit more with it.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Apr 25, 2005, 12:18 PM
 
Well, I would imagine that code would be very useful getting you started.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Apr 25, 2005, 12:38 PM
 
No, it doesn't have a built-in way, but it should be trivial to read a CSV into an NSArray.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
poulh  (op)
Mac Enthusiast
Join Date: Jun 2000
Location: New York, NY
Status: Offline
Reply With Quote
Apr 25, 2005, 03:55 PM
 
Originally Posted by Chuckit
No, it doesn't have a built-in way, but it should be trivial to read a CSV into an NSArray.
Thanks, this is what I am doing now.. just wanted to make sure there wasn't a 'better' way.
     
poulh  (op)
Mac Enthusiast
Join Date: Jun 2000
Location: New York, NY
Status: Offline
Reply With Quote
Apr 26, 2005, 12:20 AM
 
Originally Posted by Diggory Laycock
Well, I would imagine that code would be very useful getting you started.

Checked out his code... thanks for finding this..

[NSString withContentsOfFile] reads a file right in! Very cool Apple.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:26 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2