After signifacant research on this question, I need an expert's help! I know how to determine which button was selected and pass it to the caller. This seems inefficient to me, because 1) I have to determine which button was selected, 2) pass an appropriate response to caller, and 3) caller has to determine the result returned.
I want to move the test in the NSAlert function for button selected, and let the caller make this detrmination. What does NSAlert need to pass to its caller for the caller to make this test? I'd like to remove one of the tests.