Re: Alert Sheets hard wired in Interface Builder
Re: Alert Sheets hard wired in Interface Builder
- Subject: Re: Alert Sheets hard wired in Interface Builder
- From: Keary Suska <email@hidden>
- Date: Sat, 31 May 2008 11:08:30 -0600
- Thread-topic: Alert Sheets hard wired in Interface Builder
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:
This email sent to email@hidden