Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: Where to use GetWVariant()? Message-ID: <54266@apple.Apple.COM> Date: 24 Jun 91 03:19:55 GMT References: Organization: Apple Computer Inc., Cupertino, CA Lines: 27 In article shores@fergvax.unl.edu (Shores) writes: >I've managed to get a simple WDEF to work properly under System 7.0. >But buried in the memory manager chapter in IM 6, it says that to be >32-bit clean, one should call GetWVariant. I have a Mac SE, so I can't >run in 32-bit mode, so I can't test it and make sure that it works for >folks that are running in 32-bit mode. I'm also irked by the fact that >GetWVariant and GetCVariant are not defined anywhere! I take it that you skipped buying IM 5, which is where those calls are documented? > >Since the varCode is passed to me, why do I even need GetWVariant? Why >can't the system worry about it (or does it?) and give it to me? > I don't have IM 6 with me here, but I suspect that you are misinterpreting the section in the Memory Manager chapter. You don't have to call GetWVariant inside of your WDEF for the exact reason you state; the system gives it to you on a platter. -- ------------------------------------------------------------------------------ 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