Page 1 of 1

SFGetFile bug (fom Usenet)

Posted: February 22nd, 1985, 12:33 am
by Info-Mac
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site uw-beaver
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!vax135!cornell!uw-beaver!info-mac
From: info-mac@uw-beaver
Newsgroups: fa.info-mac
Subject: SFGetFile bug (fom Usenet)
Message-ID:
Date: Mon, 28-Jan-85 06:20:43 EST
Article-I.D.: uw-beave.617
Posted: Mon Jan 28 06:20:43 1985
Date-Received: Tue, 29-Jan-85 06:34:56 EST
Sender: daemon@uw-beaver
Organization: U of Washington Computer Science
Lines: 51

From: Elgin Lee

I thought people at info-mac would be interested in the following
message concerning SFGetFile.

------- Forwarded Message

Relay-Version: version B 2.10.2 9/18/84; site Navajo.ARPA
Posting-Version: version B 2.10.1.chuqui 4/7/84; site apple.UUCP
Path: Navajo!Glacier!decwrl!decvax!harpo!whuxlm!whuxl!houxm!ihnp4!zehntel!dual!apple!lsr
From: [email protected] (Larry Rosenstein)
Newsgroups: net.micro.mac
Subject: Re: SFGetFile
Message-ID:
Date: 24 Jan 85 18:34:14 GMT
Date-Received: 26 Jan 85 11:41:32 GMT
References:
Reply-To: [email protected] (Larry Rosenstein)
Distribution: net
Organization: Apple Computer, Inc.
Lines: 26

In article [email protected] (Evan Gross [Sys Des]) mentions
a bug with SFGetFile. I talked to Tech Support and found that they know
about the problem and have a work around.

The problem is if you use a dialog hook with SFGetFile it will receive a
100 code for disk-inserted events as well as null events. That is why 100
is continually being sent.

The workaround is for your dialog hook to call OSEventAvail with an
appropriate event mask, to see if there is a disk-inserted event in the
queue. You can ask for all kinds of events to see if the disk-inserted is
next in the queue, or only disk-inserted to see if it is somewhere in the
queue. I will pass along the suggested fix (send 100+drive #) to the
people in charge of such things.

The undocumented feature (the dialog hook is passed -1 when the dialog box
is put up) was also known, and should be documented in the next release of
the Package Manager manual.

Thanks for the bug report.

Larry Rosenstein
UUCP: {dual, nsc, voder, ios}!apple!lsr
CSNET: lsr%Apple@CSNET-RELAY

"The Expandable Application: We do the programming so you don't have to."


------- End of Forwarded Message