Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 18, 2013, 05:45 PM   #1
mnsalz91
macrumors newbie
 
Join Date: Feb 2013
Saving and Loading Files

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
mnsalz91 is offline   0 Reply With Quote
Old Feb 18, 2013, 06:08 PM   #2
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by mnsalz91 View Post
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.
gnasher729 is offline   0 Reply With Quote
Old Feb 19, 2013, 08:41 AM   #3
mnsalz91
Thread Starter
macrumors newbie
 
Join Date: Feb 2013
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
mnsalz91 is offline   0 Reply With Quote
Old Feb 19, 2013, 09:54 AM   #4
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by mnsalz91 View Post
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.
gnasher729 is offline   0 Reply With Quote
Old Feb 19, 2013, 10:00 AM   #5
mnsalz91
Thread Starter
macrumors newbie
 
Join Date: Feb 2013
Quote:
Originally Posted by gnasher729 View Post
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.
mnsalz91 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Saving Files? BullittMustang iPhone 5 Oct 5, 2013 02:23 AM
Saving Files in iOS 7 cheekyjeremy iOS 7 3 Jun 30, 2013 05:46 AM
Saving files on a NAS WDG Mac Applications and Mac App Store 2 Apr 3, 2013 03:32 AM
Problems saving files iphonedude2008 iPhone/iPad Programming 7 Dec 12, 2012 05:14 PM
Problem with saving files.... raymann MacBook Pro 2 Sep 13, 2012 03:40 AM

Forum Jump

All times are GMT -5. The time now is 03:27 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps