Platforms to show: All Mac Windows Linux Cross-Platform

Back to CustomNSTokenFieldMBS class.

CustomNSTokenFieldMBS.acceptsFirstMouse(e as NSEventMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacControls Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No
Overridden by subclasses to return true if the receiver should be sent a mouseDown event for an initial mouse-down event, false if not.

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.

CustomNSTokenFieldMBS.canBecomeKeyView as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacControls Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No
Returns whether the receiver can become key view.

Returns true if the receiver can become key view, false otherwise.

CustomNSTokenFieldMBS.mouseDownCanMoveWindow as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacControls Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No
This event is called so you can decide what happens with mouse down.

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.

CustomNSTokenFieldMBS.viewDidMoveToWindow

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacControls Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No
Informs the receiver that it has been added to a new view hierarchy.

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.

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


The biggest plugin in space...