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


SetAmountTotal

Sets a value representing the total amount of work to be completed by an asynchronous process.

void SetAmountTotal (in long amtTotal, 
in CyberProgressBroadcaster broadcaster);
amtTotal
The total amount to be done by the process.
broadcaster
The progress broadcaster broadcasting the change.
DISCUSSION
This method is called by the CyberProgressBroadcaster::SetAmountTotal method to broadcast a new total amount value to all progress receivers attached to the broadcaster. The amount done, set by the SetAmountDone method, is specified relative to the total amount as set by the SetAmountTotal method.

The value in the amtTotal parameter is a numeric indication of the total amount of work to be performed. For example, consider the process of downloading 200 bytes of data. In this case, the total amount is 200.

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::SetAmountTotal method (page 309).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996