« MBS Filemaker Plugin,… | Home | xDev Magazine Issue 1… »

Call delegate on main thread

We just added a new feature to the plugin: CallDelegateOnMainThreadMBS

We call the delegate on the main thread later with passing a parameter. Our plugin supports various combinations of up to 2 parameters of type string, variant, boolean, double, integer and object. If you need more combinations, please contact us.

Here are a few example calls:

CallDelegateOnMainThreadMBS AddressOf testString, "Hello"
CallDelegateOnMainThreadMBS AddressOf testNumbers, 5, 6
CallDelegateOnMainThreadMBS AddressOf TestNoParameters
CallDelegateOnMainThreadMBS AddressOf Test, "4th call", 4

This allows us to call methods to update GUI directly from a thread :-)
And with the automatic type matching, you can simply use addressOf/weakAddressOf with your method and if the plugin has a matching method, the compiler will accept and build the plugin.
PS: I added this myself because feedback case 16504 is not implemented.
04 01 14 - 21:21
two comments

So you could update a progressbar from a thread without the timer workaround?
Markus Wnter (Email) - 06 01 14 - 11:40

Yes, you could call a method from the thread which does the update and pass the new value as integer parameter.
Christian Schmitz (URL) - 06 01 14 - 12:56

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.