Re: bug or feature?
Re: bug or feature?
- Subject: Re: bug or feature?
- From: Christopher Nebel <email@hidden>
- Date: Wed, 26 Dec 2001 12:55:11 -0800
On Tuesday, December 25, 2001, at 05:30 PM, Steven Angier wrote:
Paul Berkowitz wrote:
Where do you see it says "Cancel" should throw an error number -128,
Deivy?
That's what display dialog does, not choose from list. (Very
inconsistent,
yes. I think it's derived from the history that these were once
separate
scripting additions, 'choose from list' being a 3rd-party, GTQ osax.)
I was not aware of the command's GTQ origins but, in any case, it is
clear to me that the
behaviour is a bug as it is inconsistent with its documentation and
with the other
AppleScript UI commands.
In my opinion a cancel button should always generate a user cancelled
error (number -128).
I'm not sure I'd call this a bug -- it's working as designed, and
changing it could cause great havoc -- but it should at least be
documented. (It's not inconsistent with its documentation, because it
hasn't got any aside from the dictionary, and that doesn't specify what
happens when you cancel the dialog. You could make some reasonable
guesses, but they'd be wrong, which is part of the problem.) I've filed
a bug.
--Chris Nebel
AppleScript Engineering