beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 894

background image

C H A P T E R 2 6

Utility Functions

26-4

Compatibility

New Integer Math Functions

26

The following new functions related to integer math have been added.

GetRandomState

SetRandomState

New Financial Functions

26

The following new functions that perform operations related to the currency
exchange rate have been added.

GetExchangeRate

SetExchangeRate

GetUpdatedExchangeRates

New Exception Handling Functions

26

The following new exception handling function has been added.

RethrowWithUserMessage

New Message Sending Functions

26

The following new utility functions for sending immediate messages have
been added.

IsHalting

PerformIfDefined

ProtoPerform

ProtoPerformIfDefined

New Deferred Message Sending Functions

26

The following new utility functions for delayed and deferred actions have been added.

AddDeferredCall
AddDelayedCall
AddProcrastinatedCall
AddDeferredSend
AddDelayedSend
AddProcrastinatedSend

These new functions replace

AddDelayedAction

and

AddDeferredAction

(although both remain in the ROM for compatibility with existing applications).
These two older functions have several problems, and you should not use them—
they will likely be removed in future versions of system software.