Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Window classes Message-ID: <7645@hoptoad.uucp> Date: 15 Jun 89 05:28:19 GMT References: <3949@hacgate.scg.hac.com> <32367@apple.Apple.COM> <5202@pt.cs.cmu.edu> <5209@pt.cs.cmu.edu> <2478@molokai.sw.mcc.com> <2480@molokai.sw.mcc.com> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Distribution: usa Organization: Eclectic Software, San Francisco Lines: 21 In article <2480@molokai.sw.mcc.com> dorsett@molokai.sw.mcc.com (Robert Dorsett) writes: >What is Apple policy on using the WindowKind field of a window record to >store information on application window classes? IM V. I only says that TWO >classes are defined, yet reserves an entire word for the function. Actually, IM page I-276 says that application windows can be any value eight or greater. This can be useful, but it's usually more useful to store a handle to a relocatable data structure in the refCon field instead. Still, there's nothing wrong with storing some kind of window type information in the windowKind. Values 0 through 7 are reserved, and all the negative values are reserved for desk accessory windows. So be sure you only use 8+. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com Postal: 424 Tehama, SF CA 94103; Phone: (415) 495-2934 "The negro slaves of the South are the happiest, and, in some sense, the freest people in the world. The children and the aged and infirm work not at all, and yet have all the comforts and neccessaries of life provided for them." -- George Fitzhugh, CANNIBALS ALL! OR, SLAVES WITHOUT MASTERS, 1857