http://www.newton-inc.com/dev/techinfo/qa/qa.htm
CreateTargetCursor
function.GetTargetInfo
method like: func(reason)
begin
local t := CreateTargetCursor(kDataClassSymbol, myItemArray);
local tv := base; // the targetView
return {target: t, targetView: tv};
end;
CreateTargetCursor
is used as the class of the target, which is used to determine what formats and transports are available. You must register formats on that data class symbol in your part's InstallScript
function. CreateTargetCursor
can contain any items, including soup entries or soup entry aliases. If you include soup entry aliases, they will automatically be resolved when accessing items using the GetTargetCursor
function.usesCursors
slot set to nil
will automatically print items on separate pages -- print formats must use the target variable to image the current item. To print multiple items, set the format usesCursors
slot to true
and use GetTargetCursor(target, nil)
to navigate through the items. usesCursors
slot) or the transport (the allowsBodyCursors
slot) does not support cursors, the system will automatically split the items into separate Out Box items.