Cocoa Programming for Mac OS X - Aaron Hillegass [151]
customizing views, 244–246
resizing NSScrollView, 251–252
sliders. See also NSSlider
binding value of, 119–120
making keys observable, 121–123
for sheets, 332–334
Smalltalk, 35
sort descriptors, 141–142
sortedArrayUsingSelector: method, 374
sortedArrayUsingFunction: context: method, 371
sortedArrayUsingSelector: method, 371
sorting
add to NSArrayController, 140–141
people, based on names, 142
with sortedArrayUsingSelector:, 371
using blocks, 372–373
without NSArrayController, 141–142
source code display, Instruments, 433–434
source, drag, 312–315
split view, hierarachy, 242
state message, buttons, 86
static analyzer, 63–64
Step-Over button, debugger bar, 60
string tables
creating, 237–238
localization using, 236
using, 238–239
stringByAppendingString method, NSString, 47
strings
converting with formatters. See NSFormatters
drawing strings and attributed, 289
explicit ordering of tokens in format, 240
NSAtrributedString, 286–288
Objective-C vs. C, 40–41
searching for substrings, 344–345
translated, getting into XIBs with ibtool, 239–240
.strings extension, string table, 236
stringWithFormat, NSString, 75–76
strong attribute, properties, 125
strong references
in ARC, 81–82
in manual reference counting, 72
subclasses
creating instance of view, 243–244
“inherits from” vs. “uses” or “knows about” and, 48
NSControl, 85–89
NSImageRep, 269
substrings, searching strings for, 344–345
subviews, view hierarchy, 241–243
superview, Size Inspector, 244–246
symbols, Time Profiler, 432–433
synchronous connections
multithreading in, 427–428
NSURLConnection, 361–363
@synthesize
accessor methods, 124–125
connections in Interface Builder, 93
as Objective-C keyword, 27
property attributes, 125–126
T
tab view, hierarachy, 242–243
table selector, 65
table view. See also view-based table views
NSTableView and its dataSource, 104–107
setting background color, 216–217
UITableViewController, 392–393
.tar files, 460
target/action
debugging hints, 98
defined, 21, 83
making connections, 24–25
NSMatrix, 254
NSTimer, 323
overview of, 83–85
pasteboards and nil-targeted actions, 300–302
set target programmatically, 96
target, defined, 83
targeted actions, pasteboards and nil-, 300–302
terminate: message, 33
text, drawing on layer with CATextLayer, 425
text, drawing with attributes
bold and italics, 294
getting view to generate PDF, 291–293
giving shadows to letters, 293
making letters appear, 289–291
NSAtrributedString, 286–288
NSFont, 285–286
NSFontManager, 293
overview of, 285
strings and attributed strings, 289
text fields. See also NSTextField
awakeFromNib and, 30–31
create outlet connection for, 92–93
creating basic formatter, 342–344
Text Table Cell View, 181–182
.tgz files, 460
Objective-C language, 5, 35
threads, 427–429
Time Profiler, 431–435
timeIntervalSinceDate method, NSDate, 54
timeIntervalSinceReferenceDate method, NSDate, 55
timers. See NSTimer
title
changing button, 18
to-many relationships
Core Data, 407
key-value coding for, 148–152
tokens, format strings, 40, 240
Tool project, 12
tools, 3–4
toValue property, CABasicAnimation, 424
troubleshooting, common problems, 98
types
in Objective-C, 26
U
UIKit, 383
UINavigationController, iOS, 390
UITableView, iOS, 391–393
UITableViewController, iOS, 391–393
UITableViewDataSource methods, UITableViewController, 392
UIViewController
creating RootViewController subclass, 386–387
creating Web view, 395
porting RanchForecast to iOS, 383–385
UIWebView, iOS, 395
unarchiveObjectWithData: method, loading and NSKeyedArchiver, 168–169
unarchiving, 159, 168–169
unbind method, 127
undo manager. See NSUndoManager
Undo stack, NSUndoManager, 146–147
Unicode (UTF-8) file encoding, 238
universal type identifiers. See UTIs (universal type identifiers)
Unix processes, 1–3
NSTask and, 451
unordered to-many relationships, key-value coding, 149–150
untitled documents,