I am curious what constant is passed to completion handler in NSAlert method
- (void)beginSheetModalForWindow:(NSWindow *)sheetWindow completionHandler:(void (^)(NSModalResponse returnCode))handler
Is it a number like NSModalResponseStop=-1000 or NSModalResponseAbort=-1001 ? How can I know what button was pressed if there are more than one button in the alert?