Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

WebUIDelegateMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class HTMLViewer Mac MBS MacControls Plugin 7.2 Yes No No Yes, macOS only No
Function: A class to handle user interface requests.
The plugin is very careful on which events it registers.
All events where you don't have code inside (not even comments), is not registered with the system and you get the default behavior.

All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.

Please use one delegate class per HTMLViewer (or WebViewMBS) and make sure they live about the same time. Our class keeps a reference on the WebView, so we can remove our delegate when the delegate is destroyed.

Feedback, Comments & Corrections

Drag Actions

Constant Value Description
WebDragDestinationActionAny -1 Allows any defined action to occur.
WebDragDestinationActionDHTML 1 Allows DHTML (such as JavaScript) to handle the drag.
WebDragDestinationActionEdit 2 Allows editable documents to be changed by the drag operation.
WebDragDestinationActionLoad 4 Allows the drag operation to change the location.
WebDragDestinationActionNone 0 No action.

This class has no sub classes.

Some useful global functions for this class:

Some methods using this class:

Some examples which use this class:

Blog Entries

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

WebScriptObjectMBS   -   WebViewMBS

The biggest plugin in space...

MBS Xojo tutorial videos