Article View: comp.sys.mac
Article #23831Re: MultiFInder+MultiVideo+MultiMachine
From: David Goldsmith
Date: Mon, 11 Jan 1988 19:04
Date: Mon, 11 Jan 1988 19:04
30 lines
1425 bytes
1425 bytes
In article <22461@ucbvax.BERKELEY.EDU> oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) writes:
>
>>if (((**gd).gdFlags & (1<<screenDevice)) &&
>> (((**gd).gdFlags) & (1<<screenActive))) {
>> ... whatever you want ...
>>}
>
>Now I'm confused. David Goldsmith is quite right, Stew Rubenstein also
>pointed this out, but on the same page of Inside Mac Vol5. where
>GetDeviceList() and GetNextDevice() are described is the call:
>
>TestDeviceAttribute()
>
>which is an easy and clean way of testing the gdflags. Surely, it is
>better to use the call than testing the bits directly.
Quite right. That should have been:
if (TestDeviceAttribute(gd, screenDevice) &&
TestDeviceAttribute(gd, screenActive))
Thanks.
--
David Goldsmith
Apple Computer, Inc.
AppleLink: GOLDSMITH1
UUCP: {nsc,dual,sun,voder,ucbvax!mtxinu}!apple!dgold
CSNET: dgold@apple.CSNET, dgold%apple@CSNET-RELAY
BIX: dgoldsmith
Technical Details
Message-ID:
<7165@apple.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!ucbvax!hplabs!pyramid!voder!apple!dgoldReferences:
<22366@ucbvax.BERKELEY.EDU> <22367@ucbvax.BERKELEY.EDU> <7138@apple.UUCP> <22461@ucbvax.BERKELEY.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!ucbvax!hplabs!pyramid!voder!apple!dgold From: dgold@apple.UUCP (David Goldsmith) Newsgroups: comp.sys.mac Subject: Re: MultiFInder+MultiVideo+MultiMachine Message-ID: <7165@apple.UUCP> Date: 11 Jan 88 19:04:25 GMT References: <22366@ucbvax.BERKELEY.EDU> <22367@ucbvax.BERKELEY.EDU> <7138@apple.UUCP> <22461@ucbvax.BERKELEY.EDU> Reply-To: dgold@apple.UUCP (David Goldsmith) Organization: Apple Computer Inc., Cupertino, USA Lines: 30