Path: utzoo!attcan!uunet!lll-winken!ames!ncar!tank!nucsrl!accuvax.nwu.edu!bob From: bob@accuvax.nwu.edu (Bob Hablutzel) Newsgroups: comp.sys.mac.programmer Subject: Re: Alerts and Dialog Boxes in Desk Accessories Message-ID: <10050073@accuvax.nwu.edu> Date: 26 Jan 89 14:17:22 GMT References: <1086@husc6.harvard.edu> Organization: Northwestern U, Evanston IL, USA Lines: 25 > IM gives the conventions for numbering resources that are owned by a desk > accessory, and warns that your desk accessory may be renumbered. Resource > ID's have to be recalculated from your DA's ID. The FONT/DA Mover renumbers > your DA's resources, but it doesn't change, for instance, the DITL ID stored in > a DLOG or ALRT resource. Short of modifying the resources in place in the > resource file before calling GetNewDialog() or Alert(), is there any way to > get around this problem? Read Tech Note 23. As of Font/DA Mover 3.3, DITL id numbers _for DITLs imbedded in DLOGs or ALRTs_ will be renumbered properly. (That is, they will be given the same number as the owner). Thus, at runtime, all you have to do is recalculate the id numbers. > (I'm converting an application to a DA, and want to avoid, say, getting rid of > all GetNewDialog() and Alert() calls.) Gee, do you really need them? :-) > --David Maymudes > maymudes%husc4@harvard.ARPA maymudes@husc4.harvard.edu > maymudes@husc4.UUCP maymudes@HARVUNXU.BITNET > ...{sesimo, harpo, ihnp4, linus, allegra, ut-sally}!harvard!husc4!maymudes > davidm@harvarda.BITNET Bob Hablutzel Wildwood Software BOB@NUACC.ACNS.NWU.EDU