PDA

View Full Version : Saving and Loading Files




mnsalz91
Feb 18, 2013, 05:45 PM
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



gnasher729
Feb 18, 2013, 06:08 PM
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?

Depends very much on what kind of file you want to load or save.

mnsalz91
Feb 19, 2013, 08:41 AM
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

gnasher729
Feb 19, 2013, 09:54 AM
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

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.

mnsalz91
Feb 19, 2013, 10:00 AM
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.

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.