Clear
TheClearmethod immediately removes all data stored in this clipboard object.
void Clear ();DISCUSSION
For thread-safe operation, the active part must acquire the clipboard focus before invoking this method. This method also causes the system clipboard to be cleared, but at a time that is dependent on both the platform and the document shell.The object calling this method must not be holding a storage-unit reference returned by a prior call to the
GetContentStorageUnitmethod.After this method executes successfully, the next call to the
GetContentStorageUnitmethod returns a storage-unit object with no properties.EXCEPTIONS
kODErrBackgroundClipboardClear- This clipboard belongs to a background process.
SEE ALSO
TheODArbitrator::RequestFocusmethod (page 53).
TheODClipboard::GetContentStorageUnitmethod (page 92).
"Acquiring and Relinquishing the Clipboard Focus" on page 352 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help