Thread-topic: Alert Sheets hard wired in Interface Builder
User-agent: Microsoft-Entourage/11.3.6.070618
5/31/08 10:40 AM, also sprach email@hidden:
> - (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-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden