364 hour 20:using nstableview on mac...
TRANSCRIPT
364 HOUR 20: Using NSTableView on Mac OS
FIGURE 20.1You can useautomatic identifiers.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 364
Exploring the New NSTableView Features 365
FIGURE 20.2Build a Mac OSapp with CoreData and bindings.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 365
▼
366 HOUR 20: Using NSTableView on Mac OS
FIGURE 20.3Create the project.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 366
Building an NSTableView App 367
FIGURE 20.4Create yourdata model.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 367
368 HOUR 20: Using NSTableView on Mac OS
FIGURE 20.5Add an arraycontroller.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 368
[(H3F)] 369
FIGURE 20.6Set the entityname in theAttributesinspector.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 369
370 [(H1F)]: [(H2F)]
FIGURE 20.7Bind the con-troller to theapp delegate.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 370
Building an NSTableView App 371
FIGURE 20.8Add a tableview.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 371
372 HOUR 20: Using NSTableView on Mac OS
FIGURE 20.9Select the tablecolumn to connect to thearray controller.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 372
[(H3F)] 373
FIGURE 20.10Bind thecolumn value to the arraycontroller.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 373
374 [(H1F)]: [(H2F)]
FIGURE 20.11Insert an Addbutton.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 374
Building an NSTableView App 375
FIGURE 20.12Connect theAdd button.
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 375
376 HOUR 20: Using NSTableView on Mac OS
FIGURE 20.13Run the app.
▲
20_9780672336195_ch20.qxd 6/13/12 12:59 PM Page 376