Classes | GUI > Kits > Cocoa

SCDragView

An abstract superclass for drag views
Location: NOT INSTALLED!

Description

Users will not normally directly create instances of SCDragView, but only use it through its subclasses. The three subclasses, DragSource, DragSink, DragBoth, all function basically the same way: they are simple, graphically represented rectangles, which act as a drag-source, a drag target, or both. Their dragging behavior only differs from other GUI views, in that they do not require the cmd key to be held down for dragging. All other dragging functions are those defined by View. They inherit from SCStaticTextBase, and thus store their content in object and by default display their content using asString. You can keep their string independent of the content, if you set setBoth = false. You can also set a label to be displayed while dragging by using dragLabel_().

Class Methods

Inherited class methods

Instance Methods

Subclassing and Internal Methods

The following methods are usually not used directly or are called by a primitive. Programmers can still call or override these as needed.

.defaultGetDrag

The method called by default when initiating a drag. Returns object.

Inherited instance methods

Examples