Carbon


TXNGetSleepTicks

Header: MacTextEditor.h Carbon status: Supported

Gets the appropriate amount of time to allot to background processes, depending on state of the window.

UInt32 TXNGetSleepTicks (
    TXNObject iTXNObject
);
Parameter descriptions
iTXNObject

A variable of type TXNObject. Pass the text object that identifies the current document.

function result

The appropriate wait time, in ticks. You pass this to the WaitNextEvent function.

DISCUSSION

In a cooperative processing environment, your application must determine how much time to give to background processes. A tick is 1/60 of a second.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)