Platforms to show: All Mac Windows Linux Cross-Platform
Back to IKImageBrowserViewControlMBS control.
IKImageBrowserViewControlMBS.Opening
Type | Topic | Version |
event | ImageKit | 14.2 |
The control is about to was created and you can initialize it.
In older Xojo versions, this event is named Open.
IKImageBrowserViewControlMBS.performDragOperation(sender as NSDraggingInfoMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | ImageKit | MBS AVFoundation Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
sender: The object sending the message; use it to get details about the dragging operation.
Returns if the destination accepts the data, it returns true; otherwise it returns false. The default is to return false.
For this method to be invoked, the previous prepareForDragOperation message must have returned true. The destination should implement this method to do the real work of importing the pasteboard data represented by the image.
If the sender object's animatesToDestination was set to true in prepareForDragOperation, then setup any animation to arrange space for the drag items to animate to. Also at this time, enumerate through the dragging items to set their destination frames and destination images.
IKImageBrowserViewControlMBS.prepareForDragOperation(sender as NSDraggingInfoMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | ImageKit | MBS AVFoundation Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
sender: The object sending the message; use it to get details about the dragging operation.
Return true if the receiver agrees to perform the drag operation and false if not.
This method is invoked only if the most recent draggingEntered or draggingUpdated event returned an acceptable drag-operation value.
If you want the drag items to animate from their current location on screen to their final location in your view, set the sender object's animatesToDestination property to true in your implementation of this event.
IKImageBrowserViewControlMBS.removeItemsAtIndexes(indexes as NSIndexSetMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | ImageKit | MBS AVFoundation Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
indexes: The indexes of the items that should be removed.
This method is optional. It is invoked by the image browser after Image Kit determines that a remove operation should be applied. In response, the data source should update itself by removing the specified items.
Available in OS X v10.5 and later.
IKImageBrowserViewControlMBS.ScaleFactorChanged(NewFactor as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | ImageKit | MBS AVFoundation Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
Please invalidate any cached bitmaps or other relevant state.
IKImageBrowserViewControlMBS.selectionDidChange
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | ImageKit | MBS AVFoundation Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
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.
IKImageBrowserViewControlMBS.updateDraggingItemsForDrag(sender as NSDraggingInfoMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | ImageKit | MBS AVFoundation Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
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.
IKImageBrowserViewControlMBS.wantsPeriodicDraggingUpdates as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | ImageKit | MBS AVFoundation Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
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.
IKImageBrowserViewControlMBS.writeItemsAtIndexes(indexes as NSIndexSetMBS, pasteboard as NSPasteboardMBS) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | ImageKit | MBS AVFoundation Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No |
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.
The items on this page are in the following plugins: MBS AVFoundation Plugin.