Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTokenFieldControlMBS control.

Previous items

NSTokenFieldControlMBS.TextDidEndEditing(fieldEditor as NSTextMBS, notification as NSNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 15.4 ✅ Yes ❌ No ❌ No ❌ No
Sent when a control with editable text ends an editing session.

Notification: The notification object. The name of the notification is always NSControlTextDidEndEditingNotification.

This event is invoked when the user stops editing text in a control such as a text field or form. The control posts a NSControlTextDidEndEditingNotification notification, and if the control' subclass implements this event, it is automatically registered to receive the notification. The field editor is also provided for inspection.

Warning: In some cases, such as when editing within an instance of NSOutlineView, this method may be invoked without a previous invocation of TextDidBeginEditing. You will only get the TextDidBeginEditing: notification if the user actually types something, but you can get the TextDidEndEditing notification if the user just double-clicks the field and then clicks outside the field, without typing.

NSTokenFieldControlMBS.textShouldBeginEditing(fieldEditor as NSTextMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 15.4 ✅ Yes ❌ No ❌ No ❌ No
The event called to decide whether text editing should be allowed.

Return true to allow text editing or false to deny.
Be aware that an event in Xojo without return will cause false to be returned.

NSTokenFieldControlMBS.textShouldEndEditing(fieldEditor as NSTextMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 15.4 ✅ Yes ❌ No ❌ No ❌ No
The event called to decide whether ending text editing should be allowed.

Return true to allow end of text editing or false to deny.
Be aware that an event in Xojo without return will cause false to be returned.

NSTokenFieldControlMBS.tokenFieldAction

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 15.4 ✅ Yes ❌ No ❌ No ❌ No
The control's action was triggered.

For a button if it was pressed.

NSTokenFieldControlMBS.tokenFieldTextShouldBeginEditing(fieldEditor as NSTextMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 15.4 ✅ Yes ❌ No ❌ No ❌ No
The event called to decide whether text editing should be allowed.

Return true to allow text editing.

NSTokenFieldControlMBS.tokenFieldTextShouldEndEditing(fieldEditor as NSTextMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 15.4 ✅ Yes ❌ No ❌ No ❌ No
The event called to decide whether ending text editing should be allowed.

Return true to allow text editing.

NSTokenFieldControlMBS.writeRepresentedObjects(objects() as Variant, pboard as NSPasteboardMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 15.4 ✅ Yes ❌ No ❌ No ❌ No
Sent so the delegate can write represented objects to the pasteboard corresponding to a given array of display strings.

objects: An array of represented objects associated with the token field.
pboard: The pasteboard to which to write the represented objects.

Return true if you writes the represented objects to the pasteboard, false otherwise. If false, the token field writes the display strings to the NSStringPboardType pasteboard.

Previous items

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


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