Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: Testing for System 7 Message-ID: <54491@apple.Apple.COM> Date: 1 Jul 91 00:06:10 GMT References: <1991Jun27.125511.19565@runx.oz.au> <54449@apple.Apple.COM> Distribution: na Organization: Apple Computer Inc., Cupertino, CA Lines: 25 In article davids@mondo.engin.umich.edu (David Snearline) writes: >In article <54449@apple.Apple.COM> nerm@Apple.COM (Dean Yu) writes: >>In article <1991Jun27.125511.19565@runx.oz.au> mrd@runx.oz.au (Malcolm Davidson) writes: >>>How do I test for the presence of system 7? I dont have access to >>>IM VI as yet. >>> >> >> Oh boy, oh boy, I get to use a party line. You should never assume the >>presence of a feature based on the version number of system software. You >>should check for the presence of each feature specifically by using the _Gestalt >>function. >> > >Except that you would have to check the version of the system to see >if _Gestalt exists... :-) No, you don't. Gestalt is _glue_, not a trap. There is a trap that Gestalt uses internally, but you shouldn't call that directly. -- ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "But where the senses fail us, reason must step in." - Galileo