[button setTag:i];
if (i == (size_t)default_id) {
- // focus the button at default_id if the user opted to do so.
+ // Focus the button at default_id if the user opted to do so.
// The first button added gets set as the default selected.
- // So remove that default, and make the requested button the default
+ // So remove that default, and make the requested button the default.
[[[alert buttons] objectAtIndex:0] setKeyEquivalent:@""];
[button setKeyEquivalent:@"\r"];
}
`"warning"`. On Windows, "question" displays the same icon as "info", unless
you set an icon using the "icon" option.
* `buttons` Array - Array of texts for buttons.
- * `defaultId` Integer - Index of the button in the buttons array which will be selected by default when the message box opens.
+ * `defaultId` Integer - Index of the button in the buttons array which will
+ be selected by default when the message box opens.
* `title` String - Title of the message box, some platforms will not show it.
* `message` String - Content of the message box.
* `detail` String - Extra information of the message.