Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section: 2 Building an Application > Create a Simple Text Document

Recipe 3. Create a Simple Text Document

Highlights

Creating an auxiliary document

Using Xcode snapshots

Creating a new class in Xcode

Creating a new class in Interface Builder

Allocating and initializing objects

Adding and configuring a Cocoa text view

Subclassing NSDocumentController

Using Uniform Type Identifiers to identify document types and ownership

Writing data to disk and reading it from disk

In this recipe and several following recipes, you start to write some serious code. In the process, you learn more about how to use the Xcode code editor, in which you will spend most of your time as a Cocoa developer, as well as learning more about Interface Builder. You also learn common techniques for structuring your code files to make them easier to read and maintain over time.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial