ftp.nice.ch/pub/next/developer/objc/api/QuestorAPI.3.2.s.tar.gz#/Questor_API/ExternalFunctions/Source/RefDemo2/ref_demo2.xqro/ref_demo2.rtf

This is ref_demo2.rtf in view mode; [Download] [Up]

This is the documentation for the Questor API demo function ref_demo2.

The function takes one input argument, a number, and two output arguments: two cell references. It sets the value of the first output cell to ceil(number) and the value fo the second output cell to floor(number).

The function always return true. 

The function shows how to pass references to external functions. Normally when a reference is passed as an argument to an function, the Questor runtime fetches the value of the references cell and passes this value to the function. To override this behaviour, an external function should return XQ_DONT_EVAL when asked to provide the argument type (- (int)argType:(int)argIndex).


Arguments:
	number, a number
	output_cell_1, a cell reference
	output_cell_2, a cell reference
Returns: 
	true	
Comments:
	Implemented in Objective-C.

All functions in a .xqro function library can have an associated RTF and a sound file to describe the function. The contents of these files will be accessible from the function inspector in Questor.

Both files are optional.

The files should be named as the function plus the correct file extension. 

Example: the function foo(x,y) can have the corresponding files foo.rtf and foo.snd.

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.