View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
APPENDIX B Other Cocoa Architectures on Mac OS X of the documents data, as encapsulated in model objects. The instance of that subclass must be able to read data from a file and from it re-create the documents model objects, and it must be able to save the documents current collection of model objects to a file. Occasionally it may have to maintain more than one internal representation of document data. An NSDocument object also owns and manages one or more NSWindowController objects. ■ An NSWindowController object manages the presentation of the document in a window. In MVC terms, a NSWindowController document is a view-controller: Its concern is managing the window in which document data is displayed. For simple applications you might not need to create a custom subclass of NSWindowController; the default instance can handle rudimentary window-management chores while the NSDocument object can incorporate knowledge of the view layer. But in most cases you should add the knowledge of the documents view objects to an NSWindowController subclass. An instance of this subclass is typically the Files Owner of a document nib file. A multi-window document can have several different NSWindowController objects, one for each window. Xcode provides a project template for Cocoa applications based on the document architecture. When you create a project using this template, you get an NSDocument subclass (named MyDocument) with stub implementations of the required method overrides. You also get a document nib file with Files Owner set to MyDocument. Further Reading: For a complete description of the document architecture, see Document-Based Applications Overview.Application Scriptability AppleScript is a scripting language and an interprocess communications technology that many Macintosh power users are familiar with. When compiled and run, an AppleScript script controls an application by sending it commands and may receive d