Online Book Reader

Home Category

Cocoa Programming for Mac OS X - Aaron Hillegass [147]

By Root 879 0
and, 139–140

not adding to arrays, 46

representing nothingness in array with NSNull, 46

sending messages to, 41–42

nil-targeted actions, pasteboards and, 300–302

NO, 26

nonatomic properties, 125

notifications

delegates and, 227

handling upon arrival, 226

NSNotification, 222

NSNotificationCenter, 222–224

overview of, 221

passing between applications, 222

posting, 224–225

registering as observer, 225–226

userInfo dictionary and, 226–227

NS prefix, defined, 43

NSApplication object

chronology of applications, 32–33

defined, 20

suppressing creation of untitled documents, 215–216

NSApplicationMain()function, 15, 32

NSArray, 45, 212, 371

NSArrayController

add sorting, 140–141

binding view-based table views, 183–188

key-value coding and nil, 139–140

overview of, 129–130

rewriting RaiseMan without using, 142–144

sorting without, 141–142

NSAssert(), 61

NSAtrributedString

drawing text with attributes, 286–288

drawInRect: as category for, 309

formatters returning attributed strings, 350

methods for drawing onto view, 289

NSBezierPath, 247–250

NS_BLOCK_ASSERTIONS macro, 62, 462–464

NSBox

subviews of, 241–242

view hierarchy, 242

in view swapping, 398–399

NSBundle

creating string tables for localization, 236

using string table, 238–239

working with, 204–205

NSButton

creating views programmatically, 252–253

first responders, 302

keyboard events, 271

NSButtonCell, 253

overview of, 85–86

as subclass of NSControl, 83–84

as view, 241

view hierarchy, 242

NSButtonCell, 253

NSCAssert(), assertion checking in C, 62

NSCoder

decoding data, 162–163

encoding data, 160–161

overview of, 160

NSCoding protocol, 160–163

NSColor

creating with basic formatter, 341

registering defaults, 213

using NSColorList, 344–345

NSColorList, 341, 344–345

NSColorWell

as subclass of NSControl, 83

as view, 241

view hierarchy, 242

NSComparisonResult, NSDate, 55

NSCondition, thread synchronization, 438

NSControl

commonly used subclasses of, 85–89

delegate of, 347–348

inheriting from NSView, 253

overview of, 83–85

setting target programmatically, 96

NSControlKeyMask, 258

NSController, 129–130

NSData object

loading using NSDocument, 166–167

as property list class, 212

saving and NSKeyedArchiver, 167–168

saving using NSDocument, 165–166

user defaults, 213–214

Web services, 359–362, 363–364

NSDate

create, 54–55

current time, 30–31

formatter, 88

initializers with arguments, 56–58

methods, 54–55

as property list class, 212

NSDateComponents, 51–52, 70

NSDateFormatter

attaching to text field, 88

overview of, 339–340

NSDatePicker, 112, 181–183

NSDecimalNumber, 139–140

NSDictionary

drawing text with attributes, 288

NSPasteboard using, 297

NSUserDefaults and, 211

overview of, 208–209

as property list class, 212

userInfo dictionary and, 226–227

NSDistributedNotificationCenter, 222

NSDocument

automatic document saving, 174

defined, 163

document architecture, 164

document-based applications without undo, 175

loading document, 166–167

nil-targeted actions and, 301

printing documents, 353

saving document, 164–166

undo manager for, 148

NSDocumentController, 163–164

NSDraggingInfo protocol, 315, 317–319

NSDragOperationCopy, 312–317, 319

NSDragOperationDelete, 312, 315

NSDragPboard, 296

NSEntityDescription, 189

NSError object, 165–167

NSEvent

defined, 257

keyboard events, 273–274

mouse events, 257–258

NSResponder methods, 273

NSFileHandleNotificationDataItem, 459

NSFileWrapper object, 165–167

NSFindPboard, 296

NSFont

drawing text with attributes, 285–286

NSAtrributedString, 287–288

NSFontManager, 293

NSFontPboard, 296

NSFormatters

checking partial strings, 348–350

defined, 88

implementing, 345–347

NSValueTransformer vs., 351

overview of, 339–341

returning attributed strings, 350

NSGeneralPasteboard, 296

NSGraphicsContext

drawing with Quartz using, 441

printing,

Return Main Page Previous Page Next Page

®Online Book Reader