Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTokenFieldControlMBS control.
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.
The items on this page are in the following plugins: MBS MacControls Plugin.