Article View: net.micro.mac
Article #678Problems with desk accessories
From: Larry Rosenstein
Date: Mon, 25 Feb 1985 23:19
Date: Mon, 25 Feb 1985 23:19
34 lines
2340 bytes
2340 bytes
I believe that the problem with some desk accessories not working with the
Desk Accessory Mover stems from the fact that the program assumes all desk
accessory names begin with a NUL. Inside Macintosh recommends this
convention to avoid conflicts with files names that are the same as desk
accessory names. The problem is that the DA Mover **incorrectly enforces**
this convention in a number of places.
You can usually tell if a DA is missing the NUL because the DA Mover sorts
the DAs by name, and those without NULs will sort at the end of the list --
apparently out of order. Also, if you rename such a DA, the program will
chop off the first character of the name, because it expects it to be NUL.
You can fix everything by renaming the DAs that don't work. The DA Mover
(correctly) inserts the NUL at the beginning of the string that you enter.
It is not necessary to rename them to an intermediate name first or copy
them into a separate file.
Programs that install desk accessories should automatically add the NUL to
the DA name (if not already present), but should not otherwise assume that
DA names begin with NUL.
I have run into a similar problem with the sleep DA that was distributed
recently. This is the one that comes packaged in an installation
application. While you were in the installation program, certain DAs would
not work, because the program would prepend a NUL to the DA name that it
got out of the menu. This made the OpenDeskAccessory call fail. The
correct way to open a desk accessory is to get the name from the menu and
pass it unchanged to OpenDeskAccessory.
--
Larry Rosenstein
UUCP: {nsc, dual, voder, ios}!apple!lsr
CSNET: lsr@Apple.CSNET
Technical Details
Message-ID:
<24383@apple.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcs!lsuc!pesnta!hplabs!nsc!voder!apple!lsrReferences:
<656@hou5a.UUCP> <nlm-vax.149>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1.chuqui 4/7/84; site apple.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcs!lsuc!pesnta!hplabs!nsc!voder!apple!lsr From: lsr@apple.UUCP (Larry Rosenstein) Newsgroups: net.micro.mac Subject: Problems with desk accessories Message-ID: <24383@apple.UUCP> Date: Mon, 25-Feb-85 18:19:25 EST Article-I.D.: apple.24383 Posted: Mon Feb 25 18:19:25 1985 Date-Received: Wed, 27-Feb-85 09:14:13 EST References: <656@hou5a.UUCP> <nlm-vax.149> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Macintosh Division, Apple Computer Lines: 34