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
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 ...
Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.