Cocoa Programming for Mac OS X - Aaron Hillegass [148]
NSImage
compositing image onto your view, 264–265
coordinate system of views, 266–268
representations of, 269
using, 269
NSImageRep, 269
NSImageView
binding, 186–187
view-based table views, 181–184
NSInputManager, 293
NSInvocation, NSUndoManager, 145
NSKeyedArchiver, 167–168
NSKeyedUnarchiver, 168–169
NSLevelIndicator, view-based table views, 181–184
NSLock, thread synchronization, 438
NSLog() function
defined, 40
NSManagedObject, 409–411
NSManagedObjectContext
accessing for view swapping, 397
creating, 178
defined, 177
how Core Data works, 189
interface, 179–180
NSManagedObjectModel, 177–181, 189
NSMatrix
working with cells, 253–254
NSMenuItem, 95
NSMutableArray
in compositions, 48
defined, 45
instances, 35–37
methods, 46
sorting with, 141–142
thread synchronization and, 438
NSMutableAtrributedString, 286–288
NSMutableDictionary
overview of, 208–209
NSMutableString, 45
NSMutableURLRequest class, 361–363
NSNotification, 222
NSNotificationCenter, 221–224
NSNull, 46
NSNumber
as immutable, 45
key-value coding, 118
key-value coding and nil, 139–140
as property list class, 212
NSNumberFormatter, 340
NSObject
creating class, 20–22
header files and, 26–27
init as designated initializer for, 57
isa pointer and, 65–66
as root of Objective-C class hierarchy, 43
NSObjectController, 129
NSOffState, buttons, 86
NSOnState, buttons, 86
NSOpenGLView
working with OpenGL, 441
NSOpenPanel
using, 263–264
mediated file access and Powerbox, 468
NSOperationQueue
overview of, 435
thread synchronization, 437–438
NSOrderedAscending, 47
NSOrderedDescending, 47
NSPanel
creating, 193–194
NSPasteboard
adding cut, copy and paste, 298–300
methods, 296–298
overview of, 295
NSPasteboardItem
lazy copying, 304–305
creating custom UTIs, 303
defined, 297
NSPasteboardReading protocol, 297, 299, 303
NSPasteboardWriting protocol, 297, 299, 303
NSPersistentDocument, 178, 189
NSPersistentStoreCoordinator, 189
NSPipe, NSTask, 453–454, 456–460
NSPoint
coordinate system of views, 266–268
drawing with NSBezierPath using, 248–250
drawRect: method, 247
NSPrintOperation, 353–357
NSProgressIndicator, 321, 324–325
NSRange
dealing with range of numbers, 286
searching strings for substrings, 344–345
NSRect, 247–248
NSResponder
keyboard events and, 273
NSRulerPboard, 296
NSRunAlertPanel() function, 229–230
NSRunApplication(), 16
NSSavePanel, 468
NSScrollView, 242, 250–252
NSSecureTextField, 88
NSSize, 247
NSSlider
NSSliderCell, 253
overview of, 86–87
as subclass of NSControl, 83, 85
NSSortDescriptor objects, 141–142
NSSpeechSynthesizer
delegate methods of, 100–104
NSSpeechSynthesizerDelegate protocol, 100–102, 106
NSSplitView, 242
NSSRunLoop, 328
NSString
converting strings to other objects. See NSFormatters
defined, 47
as immutable, 45
methods, 47
methods for drawing onto view, 289
NSMutableString, 45
overview of, 40–41
as property list class, 212
using compare: to sort strings, 371
NSTableCellView
binding view-based table views, 185
creating view-based table views, 181
defined, 254
NSTableDataSource, 104–107
NSTableView
connections, 109
dataSource of, 104–107
view hierarchy, 241–243
NSTableViewDataSource methods, 368
NSTask
asynchronous reads, 456
overview of, 451
NSTextField
binding view-based table views, 187–188
creating view-based table views, 181
first responders, 271–274, 302
keyboard events, 271
NSTextFieldCell view, 253
overview of, 87–89
as subclass of NSControl, 83, 85
view hierarchy, 241–242
NSTextView
first responders, 302
inheritance diagram for NSControl, 85
keyboard events, 271
NSUndoManager and, 158
NSThread, 429–431
NSTimeInterval, NSDate, 54–55
NSTimer
NSSRunLoop used with, 328
overview of, 321–323
NSUndoManager
document-based applications without, 174
for edits, 153–155
how it works, 146–148, 189
key-value observing, 152–153