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


SetAmountDone

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

void SetAmountDone (in long amtDone,
in CyberProgressBroadcaster broadcaster);
amtDone
The amount of the process that has been completed.
broadcaster
The progress broadcaster broadcasting the change.
DISCUSSION
This method is called by the CyberProgressBroadcaster::SetAmountDone method to broadcast a new value to all progress receivers attached to the broadcaster. 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 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::SetAmountDone method (page 308).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996