Path: 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 In article <22461@ucbvax.BERKELEY.EDU> oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) writes: > >>if (((**gd).gdFlags & (1<> (((**gd).gdFlags) & (1<> ... 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