[comp.sys.mac.programmer] Custom CDEF's in DA's

clay@claris.UUCP (Clay Maeckel) (05/25/88)

I was coding a DA and everything was going smoothly when I noticed that
what I was drawing on the screen was really a control. So being a good
little Mac programmer I whipped up a CDEF at it seems to work, except
a CDEF cannot be an owned resource of a driver.  Any ideas on how to get
around this?  It is currently 12:30 am and the only things that I can
think of offhand is:

1: Patch GetResource while in the DA and tweak the parameters when
looking for my CDEF.

2: Copy the owned CDEF to a valid id in (a: the system, b: in a possible
config file for the DA, c: another location?).  Could scan for conflicts
to make sure I don't step on someone else's CDEF.

3: Fold it all back into the driver code proper :-<

Please mail, post, or ignore me. Maybe tonight the answer will come to me
in a dream.

-- 
 Clay Maeckel         *   UUCP: {ames,apple,portal,sun,voder}!claris!clay
 (I know nothing!)    *   Arpanet: claris!clay@ames.arc.nasa.gov
 Claris Corporation   *   AppleLink: Maeckel1   *   CompuServe: 73057,255