The Clipboard: 3.1 Using The Clipboard: Registering with the Clipboard

Up: GEOS SDK TechDocs | Up | Prev: 3 Using The Clipboard | Next: 3.2 Managing the Edit Menu
ClipboardAddToNotificationList()

Because the Clipboard is a system entity available to all geodes, another thread may change it without your application noticing. The Clipboard therefore provides notification for this case. Because the Clipboard does not know which geodes are interested in its contents, however, applications must register when they first start up.

Calling ClipboardAddToNotificationList() allows an application to add an object to the list of those notified of changes to the Clipboard. This routine should be called by whichever object is going to be handling the Cut, Copy, and Paste operations, typically in the object's MSG_META_INITIALIZE handler. If the object handling the Clipboard operations is the application's Process object, however, it may call ClipboardAddToNotificationList() in its MSG_GEN_PROCESS_OPEN_APPLICATION handler.


Up: GEOS SDK TechDocs | Up | Prev: 3 Using The Clipboard | Next: 3.2 Managing the Edit Menu