According to Apple's documentation on "addButtonWithTitle:
", which you're using:
The first three buttons are identified positionally as NSAlertFirstButtonReturn, NSAlertSecondButtonReturn, NSAlertThirdButtonReturn in the return-code parameter evaluated by the modal delegate. Subsequent buttons are identified as NSAlertThirdButtonReturn +n, where n is an integer
So the first button should equal [NSAlertFirstButtonReturn
], which translates to "1000
". The fourth button should be "1003
".
Makes sense so far?