Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSDraggingImageComponentMBS class.

NSDraggingImageComponentMBS.Constructor(key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Initializes a dragging image component with the specified key.

key: The key.
Available in OS X v10.7 and later.

NSDraggingImageComponentMBS.contents as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
An object providing the image contents of the component.

Typically you set an NSImage instance as content.
Available in OS X v10.7 and later.
(Read and Write computed property)

NSDraggingImageComponentMBS.frame as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The coordinate space is the bounds of the parent dragging item.

The frame is {{0,0}, {draggingFrame.size.width, draggingFrame.size.height}}.

The coordinate space is the bounds of the parent NSDraggingItem instance's draggingFrame.
Available in OS X v10.7 and later.
(Read and Write computed property)

NSDraggingImageComponentMBS.key as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The unique name of this image component instance.

The key must be unique for each component in an NSDraggingItem instance. You can create your own named components, however the keys described in NSDragImage Component Keys have special meanings.

When an NSDraggingItem instances imageComponents are changed by one of the enumerateDraggingItemsWithOptions methods the image associated with this key is morphed into the new image component's image associated with the same key.

Available in OS X v10.7 and later.
(Read and Write computed property)

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...