Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!ux1.cso.uiuc.edu!tank!asl2 From: asl2@tank.uchicago.edu (Aaron "Fish" Lav) Newsgroups: comp.sys.mac.programmer Subject: Re: control definition functions without CDEFs? Message-ID: <8013@tank.uchicago.edu> Date: 12 Mar 90 20:44:48 GMT References: <423@fornax.UUCP> Distribution: na Organization: University of Chicago Lines: 30 In article <423@fornax.UUCP> mcdonald@fornax.UUCP (Ken Mcdonald) writes: >I'm writing up a bit of source which, eventually, I'd like to distribute. It >uses custom CDEFs, but one thing I'd like to do is to avoid making users >of the source copy extra CDEFs into their applications--that is, I'd like >to build the custom controls entirely within the source. The first >mcdonald@cs.sfu.ca What you want to do is allocate a six-byte handle, and fill that with a jump to your procedure's address. There was a Mactutor example of how to do this . If you want I'll try to find it and/or reproduce it. The handle's contents should be $4EF9 (jmp to 32-bit immed. addr), and then your procedure address. That's the way to avoid using fake handles. Aaron <><| asl2@tank.uchicago.edu Newsgroups: comp.sys.mac.programmer Subject: Re: control definition functions without CDEFs? Summary: Expires: References: <423@fornax.UUCP> Sender: Followup-To: Distribution: na Organization: University of Chicago Keywords: