Non-keyed Text Filed

Discussion in 'Mac Programming' started by MorphingDragon, Jun 4, 2010.

  1. MorphingDragon macrumors 603


    Mar 27, 2009
    The World Inbetween
    How would you go about reading non-keyed(.csv specifically) text files in Objective-C or C with Cocoa? I know there is fscanf() but one of the requirements is having a GUI loading/saving system.
  2. skunkworker macrumors regular

    Sep 9, 2007
    With NSFileManager you can load up the file from the disk and read in x amount of bytes at a time. Then you just load it into a data structure that allows for variable amounts of fields. Then display on the screen in a NSTableView or whatever.

Share This Page