mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-10 17:08:45 +00:00
* AppController.j: Import CSV files through CPOpenPanel into a table built from the header row. - Run the panel with a message and an options accessory view, or with neither. - Add options for a sheet, several files, a folder, and a delegate that rejects files. - Decode each file with a chosen encoding, or with encoding detection. - Assign columns to fixed fields in a sheet that shows sample values. * CSVParser.j: Parse RFC 4180 records with any one-character delimiter, and detect the delimiter. * main.j, Info.plist, index.html, index-debug.html, Jakefile: Add the application's entry points and build tasks. * Resources/Samples: Add sample files in several encodings and delimiters, with files for the rejection paths.
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
/*
|
|
* main.j
|
|
* CSVImportTest
|
|
*
|
|
* Created by David Richardson on 2026-11-02.
|
|
* Copyright David Richardson 2026.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
@import <Foundation/Foundation.j>
|
|
@import <AppKit/AppKit.j>
|
|
|
|
@import "AppController.j"
|
|
|
|
|
|
function main(args, namedArgs)
|
|
{
|
|
CPApplicationMain(args, namedArgs);
|
|
}
|