Application development
custom class
iOS application
attributes, 36
picker view, 48
simulator, 40
templates, 35
user controls, 44
Mac application
application settings, 32
delegatation, 22
method execution, 30
web-based, terminal application, 22–25
property assessors
attributes, 10
Aggregate information, key paths
@distinctUnionOfObjects operators, 311–313
arrays, 312
average priority level, 311–313
usage, 317
Array
NSArray and NSMutableArray constructors, 83
NSPredicate comparison operators, 96
referencing objects, 84–86, 110–111
save option, file system, 104–105
Asynchronous processes
GCD
dispatch_async function, 223–224
main and serial queue, 236
viewDidLoad method, 237
threads
NSObject method, 204
type cast, 207
UIProgressView, 204
updateUIWhen, 206
viewDidLoad method, 213
Automatic Reference Counting (ARC), 263, 265–267
Consume web content. See Web content
Core data
application, managed object
@dynamic keyword, 353
usage, 357
data persistence, 339
entity description
data model file, 349
description attribute, 350
project entity, 350
usage, 352
iOS/Mac application
data schemas, 343
managed objects, 345
readonly properties, 344
usage, 348
Xcode, 340
managed object
data store, 358
usage, 361
one-to-many relationship
entity description, 385
interfaces, 389
object graph, 385
project, task and worker, 387
usage, 397
visual editor style, 388
one-to-one relationship
makeNewProject function, 378
object graph, 375
project to worker relationship, 375–380
usage, 384
worker entity, 376
posting changes
console log window, 374
usage, 374
retrieve objects
fetch request, 362
current drop-down box, 399
one-to-one relationship, 400
usage, 408
Dates
NSCalendar constants, 184
Dictionaries
saving object, file system, 117–120
File system
directories
add, move, copy and remove, 145–148
iOS application
reference key directories, 136–139
system directories, 138
UI, 176
Mac application
domain masks, 135
reference key directories, 133–136
system directory constants, 134
NSMutableData mutation methods, 167–168
Garbage collection, 264, 280–281
GNUstep, Windows 7
command-line, 411
home directory, 411
installation, 409
packages, 410
tools, 409
Grand Central Dispatch (GCD)
@synthesize statement, 230
blocks, 223
dispatch_async function, 223–224
main queue, 226
NSThread, 223
iOS application
picker view, 48
reference key directories, 136–139
strings
system directories, 138
templates, 35
UI, 176
user controls, 44
JSON
NSJSONSerialization, 254
Key-value coding (KVC)
NSOject, 297
usage, 304
Mac application
application settings, 32
delegatation, 22
domain masks, 135
method execution, 30
reference key directories, 133–136
strings
system directory constants, 134
web-based, terminal application, 22–25
window, 25
Memory management
dealloc method, 272
garbage collection, 264, 280–281
lifecycle, 262
options, 264
ownership, 262
reference counting, 263, 267–270
Model-View-Controller (MVC), 285
Object collections
array
NSArray and NSMutableArray constructors, 83
NSPredicate comparison operators, 96
referencing objects, 84–86, 110–111
save option, file system, 104–105
dictionaries
NSDictionary and NSMutableDictionary constructors, 108
saving object, file system, 117–120
set
Object graphs
aggregate information, key paths
@distinctUnionOfObjects operators, 311–313
arrays, 312
average priority level, 311–313
usage, 317
archive
file system, 330
NSKeyedArchiver, 332
usage, 337
classes and objects
built-in methods, 323
entity, 284
usage, 329
creation, 285
key paths
valueForKey and setValueForKey, 305–306
key-value coding
NSObject, 297
object, 284
observer pattern implementation
class definition, 318
connection, 318
dealloc method, 318
key-value observation, 318–320
usage, 323
overriding, 286
Objective-C
GNUstep, Windows 7
command-line, 411
home directory, 411
installation, 409
packages, 410
tools, 409
Hello World, Windows 7
code testing, 415
make and text file, 412
output, 414
write and compile, 412
Objective-J
web applications, 409
button
CPButton class, 424
target-action, 425
usage, 427
user controls, 424
Hello World
folders and packages, 418
helloworldapp, 418
index.html file, 419
Info.plist file, 419
main.j file, 420
One-to-many relationship
entity description, 385
interfaces, 389
object graph, 385
project, task and worker, 387
usage, 397
visual editor style, 388
One-to-one relationship
makeNewProject function, 378
object graph, 375
project to worker relationship, 375–380
usage, 384
worker entity, 376
Strings
comparison operator (==), 63–65
file identity options, 72
foundation framework, 49
numbers
currency, scientific notation and spelled out, 78–80
primitive type/NSNumber object, 75–76
styles, 79
reading file system
writing file system
Threads
main thread, 198
NSObject method, 204
processes, 198
type cast, 207
UIProgressView, 204
updateUIWhen, 206
viewDidLoad method, 213
Version management
current drop-down box, 399
one-to-one relationship, 400
usage, 408
Web content
Windows 7
GNUstep
command-line, 411
home directory, 411
installation, 409
packages, 410
tools, 409
Hello World
code testing, 415
output, 414
write and compile, 412
XML
delegate method, 248
NSMutableString, 249
NSURL object and NSData, 246
web services, 245
3.138.120.187