Re: NSBeginAlertSheet question
Re: NSBeginAlertSheet question
- Subject: Re: NSBeginAlertSheet question
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 28 Jun 2001 13:54:02 -0400
on 6/28/01 11:18 AM, kristin at email@hidden wrote:
>
Thank you for pointing that out. Yes, I believe those constants
>
originated when the layout of the alert panel was different, and they
>
haven't been kept up to date. I will look into whether I can modify
>
them without introducing compatibility problems, but in the meantime I
>
would suggest you use NSAlertAlternateReturn as you mentioned.
I'm sure you have better things to do with your time. It would be sufficient
to put a comment or two in the header file (and the, ahem, documentation)
indicating that the NSAlertOtherReturn constant is often used for the Cancel
button in sheets (and alerts, etc.), and that NSOKButton and NSCancelButton
are not meant for use with sheets (and alerts, etc.).
I wonder to what extent this same anomaly affects other classes where sheets
and callbacks are declared?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
The AppleScript Sourcebook - www.AppleScriptSourcebook.com
Vermont Recipes - www.stepwise.com/Articles/VermontRecipes