PDA

View Full Version : Hillegass Chapter 15, Alert Panel confusion




petron
Jul 24, 2009, 02:28 PM
Hi. Is there anybody that went through the chapter 15 ?

To create a Alert Panel is not a problem but I am confused due to the solution presented by Aaron even if I do understand the construction.

I do not understand why we do need to add a new IBAction method that responds to the "delete" button. We already have a method that does that job "removeObjectFromEmployeesAtIndex", and we already associated the "delete" button with the "remove" action of the ArrayController. Seems like we try to do the same thing in a two different ways

Why not just to modify the existing construction ?

I will appreciate yours ideas on this subject. It may help me to understand some details that I miss right now.

/petron



Eraserhead
Jul 24, 2009, 04:21 PM
Seems like we try to do the same thing in a two different ways

That's probably his intention.