Platforms to show: All Mac Windows Linux Cross-Platform
Back to CustomNSScrollerMBS class.
CustomNSScrollerMBS.acceptsFirstMouse(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The receiver can either return a value unconditionally or use the location of event e to determine whether or not it wants the event. The default implementation ignores the event and returns false.
Implement this event in a subclass to allow instances to respond to click-through. This allows the user to click on a view in an inactive window, activating the view with one click, instead of clicking first to make the window active and then clicking the view. Most view objects refuse a click-through attempt, so the event simply activates the window. Many control objects, however, such as instances of NSButton and NSSlider, do accept them, so the user can immediately manipulate the control without having to release the mouse button.
CustomNSScrollerMBS.acceptsFirstResponder as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if your control can have the focus and false if not.
CustomNSScrollerMBS.becomeFirstResponder as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true to accept.
CustomNSScrollerMBS.beginGestureWithEvent(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
e: An event object representing the gesture beginning.
The event will be sent to the view under the touch in the key window.
Available in Mac OS X v10.6 and later.
Return true if you handled this event.
CustomNSScrollerMBS.canBecomeKeyView as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns true if the receiver can become key view, false otherwise.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CustomNSScrollerMBS.concludeDragOperation(sender as NSDraggingInfoMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
sender: The object sending the message; use it to get details about the dragging operation.
For this method to be invoked, the previous performDragOperation must have returned true.
The destination implements this method to perform any tidying up that it needs to do, such as updating its visual representation now that it has incorporated the dragged data. This message is the last message sent from sender to the destination during a dragging session.
If the sender object's animatesToDestination property was set to true in prepareForDragOperation, then the drag image is still visible. At this point you should draw the final visual representation in the view. When this method returns, the drag image is removed form the screen. If your final visual representation matches the visual representation in the drag, this is a seamless transition.
CustomNSScrollerMBS.endGestureWithEvent(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
e: An event object representing the gesture end.
Available in Mac OS X v10.6 and later.
Return true if you handled this event.
CustomNSScrollerMBS.ignoreModifierKeysForDraggingSession(session as NSDraggingSessionMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
session: The dragging session.
Return true if the modifier keys will be ignored, false otherwise.
Available in OS X v10.7 and later.
CustomNSScrollerMBS.isOpaque as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CustomNSScrollerMBS.keyDown(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.keyUp(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.magnifyWithEvent(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
e: An event object representing the magnify gesture.
The event will be sent to the view under the touch in the key window.
Available in Mac OS X v10.6 and later.
Return true if you handled this event.
CustomNSScrollerMBS.menuForEvent(e as NSEventMBS, defaultMenu as NSMenuMBS) as NSMenuMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
theEvent: An object representing a mouse-down event.
defaultMenu: The menu as constructed by super class.
The receiver can use information in the mouse event, such as its location over a particular element of the receiver, to determine what kind of menu to return. For example, a text object might display a text-editing menu when the cursor lies over text and a menu for changing graphics attributes when the cursor lies over an embedded image.
The default implementation returns the default menu.
CustomNSScrollerMBS.mouseDown(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.mouseDownCanMoveWindow as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you do not need to handle a mouse down and it can pass through to superviews; False if you need to handle the mouse down.
This allows iApp-type applications to determine the region by which a window can be moved. By default, this method returns false if the view is opaque; otherwise, it returns true. Subclasses can override this method to return a different value.
CustomNSScrollerMBS.mouseDragged(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.mouseEntered(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.mouseExited(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.mouseMoved(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.mouseUp(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CustomNSScrollerMBS.otherMouseDown(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
Third mouse button.
CustomNSScrollerMBS.otherMouseDragged(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
Third mouse button.
CustomNSScrollerMBS.otherMouseUp(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
Third mouse button.
CustomNSScrollerMBS.performDragOperation(sender as NSDraggingInfoMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
sender: The object sending the message; use it to get details about the dragging operation.
Return 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.
CustomNSScrollerMBS.prepareForDragOperation(sender as NSDraggingInfoMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
sender: The object sending the message; use it to get details about the dragging operation.
Returns 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 message 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 method.
CustomNSScrollerMBS.pressureChange(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 15.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This method is invoked automatically in response to user actions. event is the event that initiated the change in pressure.
Available in OS X v10.10.3 and later.
CustomNSScrollerMBS.resignFirstResponder as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true to accept.
CustomNSScrollerMBS.rightMouseDown(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.rightMouseDragged(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.rightMouseUp(e as NSEventMBS, x as Double, y as Double) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return true if you handled this event.
CustomNSScrollerMBS.rotateWithEvent(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
e: An event object representing the rotate gesture.
The event will be sent to the view under the touch in the key window.
Available in Mac OS X v10.6 and later.
Return true if you handled this event.
CustomNSScrollerMBS.scrollWheel(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
e: An object encapsulating information about the wheel-scrolling event.
The default implementation simply passes this message to the next responder.
Return true to not pass the event.
CustomNSScrollerMBS.swipeWithEvent(e as NSEventMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
e: An event object representing the swipe gesture.
The event will be sent to the view under the touch in the key window.
Available in Mac OS X v10.6 and later.
Return true if you handled this event.
CustomNSScrollerMBS.updateDraggingItemsForDrag(sender as NSDraggingInfoMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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.
CustomNSScrollerMBS.viewDidMoveToWindow
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The default implementation does nothing; subclasses can implement this event to perform whatever actions are necessary.
window may return nil when this method is invoked, indicating that the receiver does not currently reside in any window. This occurs when the receiver has just been removed from its superview or when the receiver has just been added to a superview that does not itself have a window. Overrides of this method may choose to ignore such cases if they are not of interest.
CustomNSScrollerMBS.wantsPeriodicDraggingUpdates as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa Controls | MBS MacControls Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Return 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 messages even if nothing changes.
The items on this page are in the following plugins: MBS MacControls Plugin.