• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Alert Sheets hard wired in Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Re: runloops and NSURLConnection
  • Next by Date: Re: RESTful API's - Easy way to interact?
  • Previous by thread: Re: Alert Sheets hard wired in Interface Builder
  • Next by thread: Re: Alert Sheets hard wired in Interface Builder
  • Index(es):
    • Date
    • Thread