CocoaControlMBS control

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

CocoaControlMBS control   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
control Cocoa MBS MacFrameworks Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This item is deprecated and should no longer be used.
The control to embed NSViews into a Xojo window.

Due the way Cocoa event handling works, the keydown event handler (and others) do not work with this control. To actually get an event, you'd have to use a subclass of CustomNSViewMBS and handle events there. In the CustomNSViewMBS you add the actual view you like to have. So all events not handled by this view, fall through to your CustomNSViewMBS.
On Carbon the RS framework intercepts events and calls keydown event.
Requires the window being composite for Carbon targets which is currently not available for modal windows in Xojo.

Some examples using this control:

Blog Entries

Xojo Developer Magazine

Release notes


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


ButtonMBS   -   CustomControlMBS


💬 Ask a question or report a problem