Saving and Loading Files

Discussion in 'Mac Programming' started by mnsalz91, Feb 18, 2013.

  1. macrumors newbie

    Joined:
    Feb 18, 2013
    #1
    Hello,

    My name is Miriam. I'm new. I'm working to create a text editor for a very specific niche in the theatre world. I also decided it would be a good idea to tackle objective-c cocoa at the same time. I having trouble finding up to date information (tutorials mainly) on how to save and load a file. Can someone please point me in the right direction?

    Thanks!

    Miriam
     
  2. macrumors G5

    gnasher729

    Joined:
    Nov 25, 2005
    #2
    Depends very much on what kind of file you want to load or save.
     
  3. thread starter macrumors newbie

    Joined:
    Feb 18, 2013
    #3
    In the end I need to be able to save and load a file that has rich text (MS Word .doc importable) and custom view text boxes in different shapes. This will also include access to arrays of the saved shapes. Right now I'm getting stuck with the basics of implementing the methods but that's the gist of what the whole file will do.

    Thanks!
    Miriam
     
  4. macrumors G5

    gnasher729

    Joined:
    Nov 25, 2005
    #4
    You can download the complete source code for TextEdit from Apple and go from there. Download it, open the project in Xcode, press Command-R to run it. To find it, enter "TextEdit source code" into Google.
     
  5. thread starter macrumors newbie

    Joined:
    Feb 18, 2013
    #5
    When I ran it there was an error with the (syntax paraphrasing) import AppKit/NSApplication I believe in the main. So I couldn't run it.
     

Share This Page