Platforms to show: All Mac Windows Linux Cross-Platform

Back to DesktopIKImageBrowserViewControlMBS control.

Previous items

DesktopIKImageBrowserViewControlMBS.selectionDidChange

Type Topic Plugin Version macOS Windows Linux iOS Targets
event ImageKit MBS AVFoundation Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Performs custom tasks when the selection changes.

This method signals that the user changes the selection in the image browser view. You can implement this method if you want to perform custom tasks at that time.
Available in OS X v10.5 and later.

DesktopIKImageBrowserViewControlMBS.updateDraggingItemsForDrag(sender as NSDraggingInfoMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event ImageKit MBS AVFoundation Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Invoked when the dragging images should be changed.

sender: The object sending the message; use this object to get details about the dragging operation.

While a destination may change the dragging images at any time, it is recommended to wait until this method is called before updating the dragging images.

This allows the system to delay changing the dragging images until it is likely that the user will drop on this destination. Otherwise, the dragging images will change too often during the drag which would be distracting to the user.

During enumerateDraggingItemsWithOptions you may set non-acceptable drag items images to nil to hide them or use the enumeration option of NSDraggingItemEnumerationClearNonenumeratedImages If there are items that you hide, then after enumeration, you need to set the numberOfValidItemsForDrop to the number of non-hidden drag items. However, if the valid item count is 0, then it is better to return NSDragOperationNone from your implementation of draggingEntered and, or draggingUpdated instead of hiding all drag items during enumeration.
Available in OS X v10.7 and later.

DesktopIKImageBrowserViewControlMBS.wantsPeriodicDraggingUpdates as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event ImageKit MBS AVFoundation Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Asks the destination object whether it wants to receive periodic draggingUpdated events.

Returns true if the destination wants to receive periodic draggingUpdated messages, false otherwise.

If the destination returns false, these messages are sent only when the mouse moves or a modifier flag changes. Otherwise the destination gets the default behavior, where it receives periodic dragging-updated events even if nothing changes.

DesktopIKImageBrowserViewControlMBS.writeItemsAtIndexes(indexes as NSIndexSetMBS, pasteboard as NSPasteboardMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event ImageKit MBS AVFoundation Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No
Signals that a drag should begin.

itemIndexes: The indexes of the items that should be dragged.
pasteboard: The pasteboard to copy the items to.

Returns the number of items written to the pasteboard.

This method is optional. It is invoked after Image Kit determines that a drag should begin, but before the drag has been started.
Available in OS X v10.5 and later.

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...