Article View: comp.sys.mac
Article #20519Bug in SFGetFile.
From: Larry Hutchinson
Date: Tue, 20 Oct 1987 00:02
Date: Tue, 20 Oct 1987 00:02
26 lines
1639 bytes
1639 bytes
I have a dim recolection that this has been covered before and it might
also be covered in one of the few technical notes that I a missing, so I
appologize in advance if that is the case. At any rate, I specalize in
re-inventing the wheel and wasting mucho hours discovering system bugs that
everyone else already seems to know about.
Anyway, I have found what I consider a bug in the SFGetFile package. It
appears that the DlgHook routine is not called with a stream of null 'events'
if there are window update events pending. This will happen if you have
a dialog box as a lead-in to SFGetFile. My fix was to call my outer loop
until the event queue was empty and then call SFGetFile. (This is the
proper thing to do anyway since it avoids those ugly white bloches from
un-updated windows.)
I suspect that the folks from Apple will claim that this is not a bug
because there are events in the queue and we don't want SFGetFile to lie,
do we? To that, I say "horsepucky!".
Larry Hutchinson, Tektronix, Inc. PO Box 500, MS 50-383, Beaverton, OR 97077
{ decvax,allegra }!tektronix!tekgvs!larryh
PS
System 3.2 or 4.2a4.
Technical Details
Message-ID:
<2777@tekgvs.TEK.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!tektronix!tekcrl!tekgvs!larryhShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!tektronix!tekcrl!tekgvs!larryh From: larryh@tekgvs.TEK.COM (Larry Hutchinson) Newsgroups: comp.sys.mac Subject: Bug in SFGetFile. Message-ID: <2777@tekgvs.TEK.COM> Date: Mon, 19-Oct-87 20:02:45 EDT Article-I.D.: tekgvs.2777 Posted: Mon Oct 19 20:02:45 1987 Date-Received: Wed, 21-Oct-87 00:37:45 EDT Organization: Tektronix Inc., Beaverton, Or. Lines: 26 Keywords: programming, SFGetFile