mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-23 16:48:53 +00:00
AppKit: Document CPAlert's return code as the clicked button's tag
CPAlert's documentation described the return code as the button index, which is only its default tag. * CPAlert: Document the alert return code as the clicked button's tag, which is its index unless changed.
This commit is contained in:
1 parent
203bf38b21
commit
ac709c97bf
1 file changed
+2
-1
+2
-1
@@ -137,7 +137,8 @@ var bottomHeight = 71;
|
||||
@delegate -(void)alertDidEnd:(CPAlert)theAlert returnCode:(int)returnCode;
|
||||
Called when the user dismisses the alert by clicking one of the buttons.
|
||||
@param theAlert the alert panel that the user dismissed
|
||||
@param returnCode the index of the button that the user clicked (starting from 0,
|
||||
@param returnCode the tag of the button that the user clicked. Unless a button's
|
||||
tag has been changed, it is the button's index (starting from 0,
|
||||
representing the first button added to the alert which appears on the
|
||||
right, 1 representing the next button to the left and so on)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user