Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Alert Sheets hard wired in Interface Builder (From: "John Love" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.