[comp.sys.mac.programmer] DA Moving

rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) (10/05/88)

    I am in the process of writing a desk accessory. Like most DAs, this
one has lots of its own resources. I have several ALRT and DLOG template
resouces.
    Question: Does the Font/DA Mover update the ID in the ALRT and DLOG
templates that point to the associated DITL resources? If not, how have
people gotten around this small problem?

    Rob Johnston.

matthews@eleazar.dartmouth.edu (Jim Matthews) (10/05/88)

In article <wXGFqay00Uw9M6aGEr@andrew.cmu.edu> rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) writes:
>    Question: Does the Font/DA Mover update the ID in the ALRT and DLOG
>templates that point to the associated DITL resources?

Yes.  Tech Note #23 ("Life with Font/DA Mover -- Desk Accessories")
states that the Font/DA Mover (version 3.3 and later) will automatically
change the following embedded resource IDs:

* references to DITLs in DLOGs and ALRTs
* references to ICONs, PICTs, and CTRLs in DITLs
* the menuID field of MENU resources
* references to MENUs in MBARs

Now a question: is there any way to put an icon in a DA's menu?  Menu
icons are specified by resource id in an eight-bit field, where the
value of the field is the resource id of the ICON minus 256.  Clearly
this won't work if the ICON is an owned resource, with an id number
thousands less than zero.  Is there a reasonable work-around?

Jim Matthews
Dartmouth Software Development