Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

CocoaControlMBS control

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
control Cocoa MBS MacFrameworks Plugin 8.4 Yes No No No No
Function: 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.

Feedback, Comments & Corrections

Some examples which use this control:

Blog Entries

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

ButtonMBS   -   CustomControlMBS

MBS FileMaker blog