Cocoa Programming for Mac OS X - Aaron Hillegass [142]
editing implementation file, 27
layout XIB file, 91
making connections, 92–94
asynchronous connections
NSURLConnection, 362–363
receiving response, 377–381
solving I/O- bound problems with, 434
asynchronous reads, NSTask, 456
attributed strings. See NSAtrributedString
attributes
NSAtrributedString, 287–288
in NSManagedObjectModel, 178–179
Attributes Inspector. See attributes
automatic document saving, 174
automatic reference counting. See ARC (automatic reference counting)
autorelease message
accessor methods for instance variables, 79
overview of, 74–76
retain-count rules, 76–77
autorelease pools
background threads, 430–431
simplifying release of objects, 74–76
autosavesInPlace method, NSDocument, 174
autoscroll: method, 268–269
autoscrolling
adding timer to, 328
adding to application, 268–269
Autosizing, Size Inspector, 244, 445
awakeFromNib message
chronology of applications, 32
overview of, 30–31
B
background color
table views, 216–217
background threads
overview of, 427–428
race conditions in, 428–429
using NSOperationQueue, 435–438
becomeFirstResponder method, 272–275, 281
Behaviors in Preferences panel, configuring to show log in, 29
bindings
attaching value transformers to, 351
on cell-based vs. view-based table views, 191
Core Data, 177, 183–188
creating programmatically, 127
removing, 127
using key-value coding, 119–120
Bindings Inspector. See bindings
_block type specifier, 374–375
blocks
availability of, 376
memory and objects within, 375–376
overview of, 371–373
receiving asynchronous response, 377–381
syntax for, 373–375
bold, drawing text with attributes, 294
BOOL, defined, 26
box
binding, 187–188
view swapping. See view swapping
breakpoint navigator, 60
breakpoints, 58–61
build configurations
assertion checking, 62
changing behavior, 462–464
changing to Release configuration, 62
distributing app, 461–462
bundles. See NSBundle
buttons
NSButton, 85–86
target and action of, 83–84
C
C++ language, Objective-C vs., 2
C programming language
assertion checking, 62
interaction with ARC, 82
strings in Objective-C vs., 40–41
CAAnimation class, 417
CABasicAnimation class, 424
CALayer class, Core Animation
configuring project, 417–423
custom drawing, 425
implicit animation and actions, 423–424
overview of, 417
CAOpenGLLayer, 425
case sensitivity, 7–8, 21
caseInsensitiveCompare: method
NSString, 47
sorting with array controllers, 140–141
CAShapeLayer, 425
categories
adding method to NSString, 307–309
creating, 307
declaring private methods, 309
CATextLayer, Core Animation, 420–421, 425
CATransaction, Core Animation, 417, 424
cell-based table views
bindings in, 183
limitations of, 180
view-based table views vs., 191
center-justify button, text field Attributes Inspector, 19
changeBackgroundColor: message
adding panel to application, 204
editing defaults, 214–215
notifications, 224–227
characters method, NSEvent, 273
characters with accents
Option key, 235, 237
clang/LLVM open source compiler projects, 35
class method, 54
classes
creating in Interface Builder, 20–22
creating own. See Objective-C, creating own classes
creating/using existing. See Objective-C, using existing classes
declaring in Objective-C vs. Java, 25–26
denoting with NS prefix, 43
framework as collection of, 6
implementing protocols, 160–163
overview of, 5
typographical conventions for, 7
clearContents method, NSPasteboard, 296
close button, panels, 194
Cocoa Touch
defined, 3
developing for iOS. See iOS development
Cocoa, understanding
common mistakes, 8
frameworks, 6
history of, 1–3
how to learn, 8–9
language, 4–5
objects, classes, methods, and messages, 5–6
tools, 3–4
Code Signing and Application Sandboxing Guide, 468
colon (:), method name with arguments, 36
command line tool, creating, 37–41
compare: method, sorting array controllers, 140–141
compositing