Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!apple!apple.com!shebanow From: shebanow@apple.com (Andrew Shebanow) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW v3.0 and GetNewCWindow Message-ID: <1584@internal.Apple.COM> Date: 28 Apr 89 20:42:20 GMT References: <3855@uhccux.uhcc.hawaii.edu> Sender: usenet@Apple.COM Distribution: na Organization: Apple Computer, Inc. Lines: 17 The change in the definition of NewCWindow is not a bug: it was a decision the MPW group made (with some prodding) to make the libraries easier to use. There is almost no difference between a CWindowPtr and a WindowPtr, except for the use of a few fields which should never be accessed by your application (let QuickDraw do it!). If we had kept the definitions the way they were specified, you would have to do a cast anytime you called a trap that returned a WindowPtr as a result, or took a WindowPtr as an argument. Early versions of MPW 3.0 (alphas) actually had these routines defined to take CWindowPtrs, and it was a major pain in the butt. Count your blessings.... Andrew Shebanow MacDTS - All Opinions Are Mine, and Mine Alone -