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


SetAmountDone

Sets a value representing what portion of an asynchronous process has been completed.

void SetAmountDone (in long amtDone);
amtDone
A numeric indication of the portion of the process that has been completed.
DISCUSSION
You can call the SetAmountDone method to set the progress of a process and broadcast the change to all attached progress receivers. The amount done is relative to the total amount as set by the SetAmountTotal method.

The value in the amtDone parameter is a numeric indication of the amount done. For example, consider the process of downloading 200 bytes of data. If you have downloaded 100 bytes, the amount done is 100.

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

SEE ALSO
The GetAmountDone method (page 302).
The GetAmountTotal method (page 303).
The GetProgressPercent method (page 305).
The SetAmountTotal method (page 309).
The SetProgressPercent method (page 311).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996