Cocoa Programming for Mac OS X - Aaron Hillegass [150]
overview of, 353
pagination when, 353–357
printOperationWithSettings:error: method, 353, 357
private methods, declaring, 309
programmatically creating custom views, 252
project directory, 13
Project Navigator, 27, 62
projects, creating new, 12–14
properties
attributes of, 125–126
eliminating code with, 124
in NSManagedObjectModel, 177–179
@property, declaring properties, 125
property list classes, registering defaults, 213
protocols
creating own, 173–174
as lists of method declarations, 160
NSCoding, 160–163
Python, 4
Q
Quartz, 2
QuartzCore framework, 418
Quit command, 33
R
race conditions
problems in multithreading, 428–429
thread synchronization and, 437–438
random function, 51
readFromData:ofType:error: method
loading and NSKeyedArchiver, 168–169
readFromPasteboard: method, 299, 308
readFromURL:ofType:error: method, NSTask o, 453
reading and writing defaults, 210–214, 217–218
readonly attribute, properties, 125
readwrite attribute, properties, 125
receipt validation, Mac App Store, 469–470
Received actions panel, connections, 25
Redo stack, NSUndoManager, 146–147
registerForDraggedTypes: method, 315–316
registering
defaults, 210–213
as observer, 222–226
relationships
Core Data. See Core Data relationships
in NSManagedObjectModel, 178
Release build configurations
blocking assertion checking, 62
changing current build configuration to, 62
creating, 464–466
overview of, 461–462
release message
autoreleasing objects, 73–76
calling dealloc method, 72–73
deallocating objects, 70–71
decrementing retain count, 69
enabling accessor methods for instance variables, 78–79
retain-count rules, 76–77
removeObject method, NSMutableArray, 46
removeObjectAtIndex method, NSMutableArray, 46
resignFirstResponder method, 272, 273, 280
resources, Xcode tracking application, 12
responder chain, 300–301
respondsToSelector: method, delegates, 113–114
retain counts, 64, 81–82. See also manual reference counting
retain cycles, 68–69
retain message
accessor methods for instance variables, 78–79
incrementing retain count, 69
memory management, 71–72
retain-count rules, 76–77
Revert To Saved menu item, NSDocument, 166–167
Rich Text Format (RTF), 288
Rich Text Format with attachments (RTFD), 288
RoboCop, 99
rollovers, 282–283
RTF (Rich Text Format), 288
RTFD (Rich Text Format with attachments), 288
Ruby, 4
Run action
changing current build configuration to, 62
run application, 28–29
Run toolbar, 13
S
sandboxing, application
mediated file access and Powerbox, 468
overview of, 466
specifying entitlements, 467–468
Save All menu item, NSDocument, 165–166
Save As menu item, NSDocument, 165–166
Save menu item, NSDocument, 165–166
saving
automatic document, 174
and NSKeyedArchiver, 167–168
PDFs, 292
using NSDocument, 164–166
Scheme Editor
build configurations, 461–462
changing build configuration, 62
creating release build, 464–466
scroll view
hierarachy, 242
resizing with window, 250–252
security, and application sandboxing, 466–468
selector table, 65
self, writing initializers, 55–56
setAcceptsMouseMovedEvents: message, rollovers, 282
setEnabled message, buttons, 86
setFloatValue methods, sliders, 86
setImage: method, NSImage, 268
setNeedsDisplay: message, redrawing view, 246–248
setNeedsDisplayInRect: message, 248
set NilValueForKey: key-value coding, 140
setState message, buttons, 86
setString: method, drawing text with attributes, 290
setValue:forKey method
bindings, 120
key-value coding, 117
setWantslayer, Core Animation, 419–420
shadows, 293
shapes, CAShapeLayer, 425
Share button, Release build configuration, 464–465
sheets
adding, 330
code for, 334–335
creating modal windows, 336–337
defined, 329
interface layout, 331–334
NSApplication methods, 329
outlets and actions for, 331
using contextInfo, 335–336
showWindow, panels, 203
simple attributes, key-value coding for, 148–149
Size Inspector