Squeak Class Documentation category index | class index  
 
Clipboard
  category: Kernel-ST80 Remnants
  superclass: Object
  subclasses:

The Clipboard class implements a basic buffering scheme for text. The currently selected text is also exported to the OS so that text can be copied from and to other applications. Commonly only a single instance is used (the default clipboard) but applications are free to use other than the default clipboard if necessary.

instance methods
  accessing
  chooseRecentClipping
clipboardText
clipboardText:

  initialize
  initialize

  primitives
  primitiveClipboardText
primitiveClipboardText:

  private
  noteRecentClipping:

class methods
  accessing
  chooseRecentClipping
clipboardText
clipboardText:
default
default:

  instance creation
  new

instance methods
  accessing top  
 

chooseRecentClipping

Clipboard chooseRecentClipping


 

clipboardText

Return the text currently in the clipboard. If the system clipboard is empty, or if it differs from the Smalltalk clipboard text, use the Smalltalk clipboard. This is done since (a) the Mac clipboard gives up on very large chunks of text and (b) since not all platforms support the notion of a clipboard.


 

clipboardText:

Set text currently on the clipboard. Also export to OS


  initialize top  
 

initialize


  primitives top  
 

primitiveClipboardText

Get the current clipboard text. Return the empty string if the primitive fails.


 

primitiveClipboardText:

Set the current clipboard text to the given string.


  private top  
 

noteRecentClipping:

Keep most recent clippings in a queue for pasteRecent (paste... command)


class methods
  accessing top  
 

chooseRecentClipping

Clipboard chooseRecentClipping


 

clipboardText

Clipboard clipboardText


 

clipboardText:


 

default


 

default:

So that clients can switch between different default clipboards


  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.