Index AdoptiveClass class, 101–102 advanced views about, 177–178 animating views, 201–205 Apple’s component collection, 178–179 Cocoa views, 179–187 creating custom views, 187–189 drawing, 189–201 all variables, 312 alloc method, 97, 100, 105, 355, 362 Amazon (website), 24 analyzing user data, 209–210 ancestor class, 88 animating views, 201–205 AnimationView class, 202–205 animator, 205 app data free trade agreement, 244–245 App Store (Apple) about, 10–11 app, 14 becoming a seller in, 38 icons requirements
388 Mac Application Development For Dummies applications (apps).
Index Breakpoint State button, 51 breakpoints defined, 51 setting, deleting, and disabling in Xcode Debugger, 313–318 Bugzilla, 334, 336 Build Configuration setting, 53 building apps, 19 built-in apps, 12–14 ButtonMadness app, 372 buttons about, 14 Back, 58 Breakpoint State, 51 Forward, 58 Organizer, 52 Run, 50 selector, 55–56 Stop, 51 •C• calculateTip: method, 74, 78, 79, 324 CalendarStore framework, 111 ‘call me when you’re done’ operation, 253 calling methods, 98–99 CarView class, 94 @catch statement, 2
390 Mac Application Development For Dummies Cocoa Dev (website), 380 Cocoa Dev Central (website), 380 Cocoa frameworks about, 109–112 defined, 1 groups, 130 Cocoa Is My Girlfriend (blog), 381 Cocoa.
Index modified, warning-free calculateTip: method, 324 modified source module SimpleCocoaWi ndowAppAppDelegate.
392 Mac Application Development For Dummies data (user), printing about, 283 with Cocoa, 283–286 printing pages, 290–293 printing straight to PDF, 294–295 printing with multiple pages, 295–302 setting up pages, 286–290 data classes, 27, 28, 211–217 Data Views (Cocoa Framework), 130 database, 222 dataWithContentsOfFile: method, 107 deadlocks, 260 dealloc method, 93, 95, 107, 108 Debug area (Xcode Debugger), 310–312 Debug bar (Xcode Debugger), 311–312 Debug navigator, 55 debugging about, 25, 31, 305–306 apps
Index executing apps, 19–20 scheduled one-time events, 261–267 exporting data, 244–248 •F• fields, 222 File Coordination, 34 file extension, 344 file icons, 337–338, 343–347 File inspector (Inspector pane), 124 File menu, 132 files. See also specific files DPData.
394 Mac Application Development For Dummies Identity Inspector (Inspector pane), 124 image editors, 23 Image Kit (Objects Library), 129 images, drawing, 199–201 ImageTransition app, 374–375 iMovie, 24 @implementation statement, 30, 93 implementing an array controller class in Xcode, 236–239 code for ColorizeTimerAppDelegate, 273–275 code for scheduling single events, 264–265 code for StockAccount.
Index •M• Mac App Store review guidelines, accessing, 37 Mac apps.
396 Mac Application Development For Dummies methods (continued) initWithCoder, 214 knowsPageRange: (NSRangePointer) inRange, 296 locks, 259 methodToCallOnNotify, 32 MyDocument, 246–250 newObject:, 237–238 Objective-C programming, 98–100 overriding, 94 pageSetup:, 289–290 printOperationWithSettings: error:, 297 protocol, 102 rectForPage: (init) inPageNumber, 296 release, 106, 107, 108, 362, 378 resetLabel, 266 retain, 105, 106, 107, 108, 355, 362, 378 runModalWithPrintInfo:, 290 scheduleEvent, 265, 267 setN
Index NSDate object, 36, 217, 243 NSDateFormatter object, 36 NSDictionary objects, 198, 243, 374 NSDictionaryController object, 374 NSDrawer class, 149 NSImage class, 199–201 NSImageDelegate object, 103 NSImageView, 205 NSInteger member variable, 96, 290 NSKeyedArchiver class, 219, 220 NSKeyedUnarchiver class, 220 NSLog function, 328–333 NSMutableArray, 217 NSMutableData object, 247–248 NSMutableDictionary parameter, 198, 373, 374 NSNotification class, 33 NSNotificationCenter class, 32, 33 NSNumber objects,
398 Mac Application Development For Dummies NSApplicationDelegate, 103 NSCoder, 218, 219 NSData, 107, 220, 243 NSDate, 36, 217, 243 NSDateFormatter, 36 NSDictionary, 198, 243, 374 NSDictionaryController, 374 NSImageDelegate, 103 NSMutableData, 247–248 NSNumber, 243 NSPoint, 182–183, 197 NSStream, 373 NSTableViewDelegate, 103 NSURL, 243 NSWindow, 148–151, 179, 180 NSWindowDelegate, 103 Objective-C programming, 93–95 PreferencesController, 168–172, 354 proxy, 67 super, 94, 95 Objects & Controllers (Cocoa Fra
Index programming.
400 Mac Application Development For Dummies setup pages to print, 286–290 scheduled one-time events, 261–267 Shark, 23 shortcuts (keyboard), 383–384 showPreferences: method, 172–173 SimpleCocoaApp app, 372 SimpleCocoaWindowAppApp Delegate.h, 65, 316 SimpleCocoaWindowAppApp Delegate.
Index TFHpple, 282 Theocacao (blog), 381 this pointer, 94 threads about, 252–253 rules for using, 256–260 scheduling events with, 260–282 synchronizing, 258–260 when to use, 254–256 three-finger swipe, 384 Time Machine, 24 tip calculators, 63–82 toolbar, 50–53 ToolbarSample app, 371 tools about, 11, 19 Apple Macintosh, 19–21 downloading software, 21–24 language, 24 Xcode, 22–23 tracking bugs, 333–336 memory, 378–379 transparency, 142, 186 @try statement, 282 two-finger swipe, 384 two-finger tap, 384 •U• UI
402 Mac Application Development For Dummies websites Adobe Photoshop Elements, 23 Amazon, 24 Apple Developer Forum, 380 Apple documentation, 380 Apple sample apps, 370 Apple’s Human Interface guidelines, 128 Bugzilla, 334, 336 Cocoa Builder, 380 Cocoa Dev, 380 Cocoa Dev Central, 380 Cocoa Is My Girlfriend (blog), 381 Domain of the Bored (blog), 381 For Dummies series, 275–276 GIMP, 23 Macintosh Developer downloads, 41 MacTech, 380 Mozy, 24 MySQL, 336 Nokia, 24 Theocacao (blog), 381 Worldwide Developer Conf