[NTLK] Load package
Simon Bell
simonbell at mac.com
Mon Sep 23 06:46:29 EDT 2013
On 23 Sep 2013, at 11:15, Moshe Waisberg <pnemonic at gmail.com> wrote:
> For Docking protocol:
> How do I cancel "load package" from the desktop?
Clearly, the dock protocol does not allow you to interrupt any command part way through, so once transmission of a package has begun (kDLoadPackage command) it must run to completion.
If you start the Install Package on the desktop, the command sequence looks like:
Desktop Newton
kDDesktopControl >
kDRequestToInstall >
< kDResult
kDLoadPackage >
< kDResult
kDLoadPackage >
< kDResult
kDOperationDone >
so you would simply not send kDLoadPackage and terminate the sequence with kDOperationDone.
If you start the Install Package on the Newton, after browsing for the package file the command sequence looks like:
Desktop Newton
< kDLoadPackageFile
kDLoadPackage >
< kDResult
so you would send kDOperationCanceled instead of kDLoadPackage.
Simon
More information about the NewtonTalk
mailing list