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
  • PrintPrint
Share this Page URL
Help

Recipe 4. Add Controls to the Document W... > Step 8: Build and Run the Applicatio...

Step 8: Build and Run the Application

Build and run the application to test once again what you’ve created. You can’t be too careful. Even though you have run it several times while working through this recipe, it is always useful to step back and take a longer look at your work product for the entire recipe at once.

This recipe has been an exercise in using some of the features of the Cocoa text system. You have only touched the surface, but you have gotten a flavor for how to search and edit text programmatically. Use the Add Entry and Add Tag buttons to add several entries to the Chef’s Diary and tag them with keywords. Type some text. To test the performance of the diary with larger amounts of text, copy a large TextEdit file and paste its entire text into each diary entry. Then play with the navigation buttons, the date picker, and the search field to see how well they perform. Be sure to undo and redo changes frequently.

  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint