Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.398.799 Times

CHCSVParser 1.0

Company: Dave Delong
Date Added: July 20, 2013  |  Visits: 358

CHCSVParser

Report Broken Link
Printer Friendly Version


Product Homepage
Download (41 downloads)



CHCSVParser is an Objective-C parser for CSV files.<br /><br />Parsing<br />In order to parse CSV files, you'll need CHCSVParser.h and CHCSVParser.m. A CHCSVParser works very similarly to an NSXMLParser, in that it synchronously parses the data and invokes delegate callback methods to let you know that it has found a field, or has finished reading a line, or has encountered a syntax error.<br /><br />A CHCSVParser can be created either with a path to a CSV file, or with an NSString of CSV data.<br /><br />Writing<br />In order to write data to a CSV file, you'll need CHCSVWriter.h and CHCSVWriter.m. A CHCSVWriter has 2 primary methods (beyond the designated initializer): writeField: and writeLine.<br /><br />writeField: accepts an object and writes its -description (after being properly escaped) out to the CSV file. It will also write field seperator (,) if necessary. You may pass an empty string (@"") or nil to write an empty field.<br /><br />writeLine is used to terminate the current CSV line. If you do not invoke writeLine, then all of your CSV fields will be on a single line.<br /><br />Convenience Methods<br />Included in the code is an NSArray category to simplify reading from and writing to CSV files. In order to use these methods, you must include CHCSVParser.*, CHCSVWriter.*, and NSArray+CHCSVAdditions.* in your project (all six files). This category adds 7 methods to NSArray: three class methods, three initializers, and one write method:<br /><br /> . + (id) arrayWithContentsOfCSVFile:(NSString *)csvFile encoding:(NSStringEncoding)encoding error:(NSError **)error;<br /> . - (id) initWithContentsOfCSVFile:(NSString *)csvFile encoding:(NSStringEncoding)encoding error:(NSError **)error;<br /> . + (id) arrayWithContentsOfCSVFile:(NSString *)csvFile usedEncoding:(NSStringEncoding *)usedEncoding error:(NSError **)error;<br /> . - (id) initWithContentsOfCSVFile:(NSString *)csvFile usedEncoding:(NSStringEncoding *)usedEncoding error:(NSError **)error;<br /> . + (id) arrayWithContentsOfCSVString:(NSString *)csvString encoding:(NSStringEncoding)encoding error:(NSError **)error;<br /> . - (id) initWithContentsOfCSVString:(NSString *)csvString encoding:(NSStringEncoding)encoding error:(NSError **)error;<br /> . - (BOOL) writeToCSVFile:(NSString *)csvFile atomically:(BOOL)atomically;<br /><br />All of the initializers (both class and instance versions) return an NSArray of NSArray objects.<br /><br />The writeToCSVFile: method expects the same structure (an NSArray of NSArray objects).<br /><br />There is also an NSString category to parse an NSString of CSV data into an NSArray of NSArray objects. This method is:<br /><br /> - (NSArray *) CSVComponents;<br /><br />Both the NSArray and NSString categories require including the CHCSVSupport.h and CHCSVSupport.m files in your project.<br /><br />General Use<br />The simplest use of CHCSVParser is to include all of the files in your project:<br /><br /> . CHCSV.h<br /> . CHCSVParser.h and CHCSVParser.m<br /> . CHCSVWriter.h and CHCSVWriter.m<br /> . NSArray+CHCSVAdditions.h and NSArray+CHCSVAdditions.m<br /> . NSString+CHCSVAdditions.h and NSString+CHCSVAdditions.m<br /> . CHCSVSupport.h and CHCSVSupport.m<br /><br />Then to use any of the CSV parsing or writing functionality, simply #import "CHCSV.h" and use any of the classes and categories as you'd like.

Requirements: No special requirements
Platforms: Mac, Mac OS X v10.5
Keyword: Arraywithcontentsofcsvstringnsstring Atomicallyboolatomicallyall Csvfile Encodingnsstringencodingencoding Error Errornserror Initwithcon Initwithcontentsofcsvfilensstring Instance Usedencoding Usedencodingnsstringencoding Writetocsvfilensstring
Users rating: 0/10

License: Freeware Size: 21.27 MB
USER REVIEWS
More Reviews or Write Review


CHCSVPARSER RELATED
Libraries  -  XML::Schema::Type::Simple 0.07
XML::Schema::Type::Simple is a base class for simple XML Schema datatypes. SYNOPSIS package XML::Schema::Type::whatever; use base qw( XML::Schema::Type::Simple ); use vars qw( @FACETS ); @FACETS = ( minLength => 10, maxLength => 30,...
143.36 KB  
Code Management Tools  -  Speak Logic Information Analysis for Visual Studio 1.1
The Speak Logic Information Analysis for Visual Studio enables users to analyze information in Visual Studio. The Speak Logic Information Analysis for Visual Studio enables users to analyze codes in Visual Studio. While working in Visual Studio,...
28.78 MB  
Development Editors  -  Speak Logic Information Analysis for Visual Studio V 2012
The Speak Logic Information Analysis for Visual Studio enables users to analyze information in Visual Studio. The Speak Logic Information Analysis for Visual Studio enables users to analyze codes in Visual Studio. While working in Visual Studio,...
31.71 MB  
Libraries  -  Net::DBus::Error 0.33.4
Net::DBus::Error is a Perl module with error details for remote method invocation. SYNOPSIS package Music::Player::UnknownFormat; use base qw(Net::DBus::Error); # Define an error type for unknown track encoding type # for a music player...
94.21 KB  
Libraries  -  libgpg-error 1.4
libgpg-error package contains common error codes and error handling functions used by GnuPG, Libgcrypt, GPGME and more packages. Installation: Please read the file INSTALL! Here is a quick summary: 1) Check that you have unmodified...
614.4 KB  
Utilities  -  TM Error Logger for Mac OS 1.06
Do you get those Time Machine Error alert messages and wonder why? Would you like to find out exactly what caused the error so you can do something about it? Run TM Error Logger after you get the Time Machine error and you will get a report...
2.5 MB  
Utilities  -  FixPCDLL DLL Error Fix 1.0.0.217
FixPCDLL DLL Error Fix has been impressing technology experts and consumers alike with it's impenetrable Spyware defense and easy-to-use features. In numerous lab tests Spyware Doctor consistently outperformed the competition by detecting more...
1.96 MB  
Utilities  -  Error Messages for Windows 2.9
MS Windows Error Messages is a small utility that will allow you to look up MS Windows error code numbers and display a descriptive message explaining what the numeric code actually means. If you have software programs that produce numeric error...
153.6 KB  
Modules  -  Dunstan-style Error Page 1.3.1
The pages offer possible causes for the error, as well resolutions and available actions.InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Requirements: - WordPress...
 
Network & Internet  -  Bottom Error Console for Linux 0.3.4
Bottom Error Console splits window and display error console on the down side. I create this extension referring to "docked JS-Console". You can toggle the presence of the display with the statusbar button or shortcut key (Ctrl + Shift + B).
10.24 KB  
NEW DOWNLOADS IN MACINTOSH SOFTWARE, PROGRAMMING
Macintosh Software  -  EasyEDA PCB Designer for MacOS 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Macintosh Software  -  VideoSolo Video to GIF Converter (Mac) 1.0.12
How to make a GIF? VideoSolo Free Video to GIF Converter for Mac supports all popular video files including MP4, AVI, MOV, WMV, FLV, M4V, etc. You can easily turn MP4/AVI/MOV/WMV/FLV/M4V to GIF animation on Mac and share your GIFs with your...
46.51 MB  
Macintosh Software  -  VideoSolo Free Video Converter (Mac) 1.0.18
VideoSolo Free Video Converter for Mac is a fast, powerful and easy-to-master video converter. Its main purpose is to convert video files from one format into another. It is able to convert video and audio files in 300+ formats on Mac for totally...
75.29 MB  
Macintosh Software  -  ManyCam for Mac 6
ManyCam is a free Webcam software and a screen recorder for anyone to use. Several feature enhancements are included within ManyCam to produce a professional quality live video production. It can connect a desktop, smartphone, tablet and live...
90.49 MB  
Macintosh Software  -  MacX Free Rip DVD to QuickTime for Mac 4.1.9
MacX Free Rip DVD to QuickTime for Mac is totally free yet versatile DVD to QuickTime ripper software for Mac users to free rip both normal and copy-protected DVDs to QuickTime MOV, MP4 on Mac with excellent image quality. Besides the powerful...
36.3 MB  
Programming  -  MacX Free iMovie Video Converter 4.1.8
MacX Free iMovie Video Converter is a professional free iMovie video converter for Mac that can convert any SD and HD videos such as M2TS, MKV, AVI, WMV, FLV, VOB, 3GP and more to iMovie accepted video formats MOV & MP4 for importing to iMovie...
22.92 MB  
Programming  -  SwapList 0.1 Alpha
Java list implementation that swaps list items to a disk file in order to avoid out-of-memory error.
10.24 KB  
Programming  -  Mano 1.05 Beta
Mano is a makeFile navigator containing a tree grouping the targets.
20.48 KB  
Programming  -  Workhorse 1.2
Workhorse automates tedious file transfer and deletion tasks. Just tell it when or how often you want it to run, fill in the details, and let it do it's job! Do you know Applescript? Use Workhorse to run your scripts at a given time or interval....
225.28 KB  
Programming  -  PLT Scheme (formerly DrScheme) Darwin (PPC) 4.2
PLT Scheme is an interactive, integrated, graphical programming environment for the Scheme, MzScheme, and MrEd programming languages. PLT Scheme provides source highlighting for syntax and run-time errors, support for multiple language...
38.27 MB