Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: C++ programming under MPW - advice sought Message-ID: <32375.27684129@stjhmc.fidonet.org> Date: 13 Dec 90 14:08:56 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 24 Keith Tizzard writes in a message to All KT> In the following member function why do we have: ? KT> EnableItem(menu, iNew); instead of menu->EnableItem(iNew) KT> DisableItem(menu, iClose); instead of menu->DisableItem(iClose); KT> menu = GetMHandle(mFile); instead of menu = mFile->GetMHandle() Are you ready to blush? Those are all ToolBox calls, part of the ROM routines built into the Mac, not member functions of an object. (the Mac kinda jumps up and bites us all some time...) ( "I don't remeber how to initialize a Mac program anymore: I just copy 'n' paste from some of my old code into my new program" --Bill Atkinson) Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org