O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Make the User Confirm the Deletion

In RaiseMan, if the user clicks the Remove button, an alert panel should appear to confirm the deletion (Figure 15.5). Of course, the user should also be able to remove multiple employees at once, rather than tediously removing them one by one.

Figure 15.5  Completed application

Completed application

To enable this behavior, open Document.xib, select the table view, and open the attributes inspector. Allow the user to select multiple rows by checking Multiple next to Selection (Figure 15.6).

Figure 15.6  Enabling multiple selection in the table view’s attributes inspector

You now want to create an action ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required