Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / CyberProgressBroadcaster


SetProgressMode

Sets the progress mode for an asynchronous process.

void SetProgressMode (in short mode);
mode
The progress mode of the process. Valid values for this parameter are kUnmeteredProgress or kMeteredProgress.
DISCUSSION
You can call the SetProgressMode method to set the progress mode of a process and broadcast the change to all attached progress receivers.

The progress mode of the process indicates whether the total amount of work to be performed is known and can be measured. For example, if you know in advance the number of bytes to be downloaded, the progress mode is metered. In contrast, if you don't know in advance the number of bytes to be downloaded, the progress mode is unmetered. The default progress mode is unmetered.

If you subclass CyberProgressBroadcaster and override this method, your override must call its inherited method.

SEE ALSO
The GetProgressMode method (page 304).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996