FROM : Keary Suska
DATE : Sat May 31 19:08:30 2008
5/31/08 10:40 AM, also sprach jolove+<email_removed>:
> - (void) endCalculateSheet:(NSWindow*)theSheet code:(int)returnCode
> info:(void*)contextInfo {
> if (returnCode == NSAlertDefaultReturn) { // "Good Bye!"
>
> NSLog(@"Default Button clicked"); // does not log this entry
>
> }
>
> [theSheet close];
> }
If you didn't create the sheet with
+alertWithMessageText:defaultButton:alternateButton:otherButton:informativeT
extWithFormat:, then you would not get that constant. Read the NSAlert API
reference, especially -addButtonWithTitle:
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
DATE : Sat May 31 19:08:30 2008
5/31/08 10:40 AM, also sprach jolove+<email_removed>:
> - (void) endCalculateSheet:(NSWindow*)theSheet code:(int)returnCode
> info:(void*)contextInfo {
> if (returnCode == NSAlertDefaultReturn) { // "Good Bye!"
>
> NSLog(@"Default Button clicked"); // does not log this entry
>
> }
>
> [theSheet close];
> }
If you didn't create the sheet with
+alertWithMessageText:defaultButton:alternateButton:otherButton:informativeT
extWithFormat:, then you would not get that constant. Read the NSAlert API
reference, especially -addButtonWithTitle:
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"






Cocoa mail archive

