Description
Book SynopsisThis developer's guide to creating applications for computers using Mac OS X, explains how to build sophisticated applications rather than offer a series of simplistic and vague examples.
Table of ContentsPart I Cocoa overview: understanding the Aqua interface, what makes Mac OS X so special?, a quick look at the Mac OS X user interface, basic principles of the Aqua interface, the mouse and cursor, window types and behaviour, menus and the menu bar, the dock controls, the finder configuring your desktop, step-by-step, menu guidelines and keyboard equivalents, working with the filesystem step-by-step, summary, exercises, references; tools for developing Cocoa applications - developer tools, utilities, working with the terminal, debugging programs with gdb user interface design, summary, exercises; creating a simple application with interface builder - getting started with interface builder, adding objects to your application, objects, messages, and targets, summary, exercise; an objective-C application without interface - builder, the Tiny.m program, an introduction to objective-C, Tiny.m revisited, summary, exercises, references. Part II Calculator: building a simple application; building a project - a four-function calculator, getting started - building the calculator project, building the calculator's user interface, building the calculator's controller class, customizing buttons and making connections, compiling and running a program, compiler error messages, the enterDigit - action method, adding the four calculator functions, adding the Unary Minus function to the controller class, the files in a project, summary, exercises; nibs and icons - customizing mainmenu.nib, managing multiple nibs, adding icons to applications, changing calculator's application icon, Cocoa's NSImage class, summary, exercises, references; delegation and resizing - handling different bases, delegation, disabling buttons for bettermultiradix input, resizing windows programmatically, two very important classes - NSWindow and NSView, summary, exercises; events and responders - events and the NSResponder chain, events and the NSApplication object. Part III MathPaper: a multiple-document, multiprocess application; MathPaper and Cocoa's document-based architecture - the MathPaper application, the evaluator back end, Cocoa 's Document-Based Architecture, building MathPaper's front end, summary, exercises, references; tasks, pipes, and NSTextView - processes, pipes, and resources, making evaluator a MathPaper auxiliary executable, MathDocument class modifications, creating PaperController, a subclass of NSWindowController, the NSScrollView and NSTextView classes, PaperController class modifications, summary, exercises; rich text format and NSText - rich text format and NSText, rich text format, creating an RTF class, integrating our RTF class into MathPaper, summary, exercises; saving, loading, and printing - data management with NSDocument, saving to a file, loading from a file, marking a document window as edited, adding printing capability, summary, exercises. (Part Contents)