
Route Scripts
routeScripts array is a frame with the following slots:
titleGetTitle slot is provided.
GetTitlefunc(e). Given e, the current target, returns a string to be used in the Action picker. This is a way to dynamically determine the text in the Action picker. A return result of nil specifies there is no entry for this item in the Action picker. This slot shouldn't be provided if a title slot is present.
iconROM_routeDuplicateIcon and ROM_routeDeleteIcon
routeScriptfunc(target, targetView) or symbol. This is either directly a function, or indirectly a function (a symbol that specifies the message to send to the Action button). In either case, the function is called with the current target and targetView.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996