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 / CyberProgressReceiver


SetProgressPercent

Sets the percentage of an asynchronous process that has been completed.

void SetProgressPercent (in short percentDone, 
in CyberProgressBroadcaster broadcaster);
percentDone
An integer value indicating the percentage of the process that has been completed.
broadcaster
The progress broadcaster broadcasting the change.
DISCUSSION
This method is called by the CyberProgressBroadcaster::SetProgressPercent method to broadcast a new percent done amount to all progress receivers attached to the broadcaster.

For example, consider the process of downloading 200 bytes of data. If you have downloaded 100 bytes, 50% is completed.

If you subclass CyberProgressReceiver, you must override this method. Your override must not call its inherited method; that is, your override method must implement this method's functionality completely.

SEE ALSO
The CyberProgressBroadcaster::SetProgressPercent method (page 311).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996