returnCode from beginSheetModalForWindow is incorrect?
returnCode from beginSheetModalForWindow is incorrect?
- Subject: returnCode from beginSheetModalForWindow is incorrect?
- From: "Geert B. Clemmensen" <email@hidden>
- Date: Wed, 16 Mar 2005 14:05:49 +0100
Hello,
Assuming you have done a beginSheetModalForWindow:... and subsequently clicked one of the buttons, the method given as didEndSelector:, which should have a signature like this:
- (void)alertDidEnd:(NSAlert *)alert returnCode:(int)returnCode contextInfo:(void *)contextInfo;
is invoked. I may have misunderstood Apple's documentation, but it says:
The returnCode identifies which button the user clicked; it is one of the ...ButtonReturn constants described in “Constants” (page 32)
As far as I can tell, the returnCode is either 1, -1 or 0 while the 3 constants referred to are defined to have the values 1000, 1001, 1002.
Is this a well-known bug I have missed references to or am I doing something wrong?
Regards,
Geert B. Clemmensen
www.frontbase.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden