• 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: NSBeginAlertSheet question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBeginAlertSheet question


  • Subject: Re: NSBeginAlertSheet question
  • From: Stéphane Sudre <email@hidden>
  • Date: Thu, 28 Jun 2001 19:42:55 +0200

On jeudi, juin 28, 2001, at 05:18 PM, kristin wrote:

Hi Bill,
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.


Is this just an historical anomaly? Are the NSOKButton and NSCancelButton
enumeration constants simply not supposed to be used with
NSBeginAlertSheet(), and never mind the potential for confusion?

The problem is also in the documentation where it's stated that NSOKButton is 0 and NSCancelButton is 1.
Actually, it's the contrary in the code.

Please don't change the values for NSOKButton and NSCancelButton, fix the documentation instead.


References: 
 >Re: NSBeginAlertSheet question (From: kristin <email@hidden>)

  • Prev by Date: Re: AppKit source available as reference?
  • Next by Date: Re: Opening Terminal App at path?
  • Previous by thread: Re: NSBeginAlertSheet question
  • Next by thread: Re: NSBeginAlertSheet question
  • Index(es):
    • Date
    • Thread