MBS Xojo Plugins, version 23.3pr5

New in this prerelease of the 23.3 plugins: Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

MBS FileMaker Plugin, version 13.3pr5

New in this prerelease of version 13.3 of the MBS FileMaker Plugin: Download at monkeybreadsoftware.com/filemaker/files/Prerelease/, in DropBox folder or ask for being added to the DropBox shared folder.

Decrypt data from PHP in Xojo

Recently we discussed how to encrypt something in PHP and then decrypt in Xojo. Check out the CipherMBS class in our plugin, which corresponds to openssl_encrypt/openssl_decrypt functions in PHP.

Here is a sample script in PHP to generate a random initial vector and a random key. Then encrypt some text with openssl using blowfish algorithm and CBC as block mode:

$cipher = 'bf-cbc';
$iv_size = openssl_cipher_iv_length($cipher);
$key_size = 20;
$iv = random_bytes($iv_size);
$key = random_bytes($key_size);

$encrypted = openssl_encrypt('Hello World. Just a test here!', $cipher, $key, OPENSSL_RAW_DATA, $iv);

print "iv: ".base64_encode($iv)."\n";
print "key: ".base64_encode($key)."\n";
print "encrypted: ".base64_encode($encrypted)."\n";

For such an encryption, you need to replicate on both sides the same settings:

  • Identical key data. May need you to hash key first.
  • Identical initial vector
  • Identical setting for padding of data to match required block size.
  • Identical handling for keys with too small size. e.g. fill up with zero bytes.

You can run the PHP script above and copy the values into the Xojo code below:

Var Cipher As CipherMBS = CipherMBS.bf_cbc Call Cipher.EncryptInit(DecodeBase64("79aMfVRxPw0="), DecodeBase64("2peenIoTK1k=")) Var Decrypted As MemoryBlock = Cipher.ProcessMemory(DecodeBase64("JBvDgbeC6vECJGiRnh27GQ==")) + Cipher.FinalizeAsMemory() Print Decrypted

If everything works fine, the result in the unencrypted text as in the PHP script.


Preview Control for FileMaker

We got new Preview functions for you in our 13.3 version of MBS FileMaker Plugin (in development) to show PDF documents on macOS and Windows in a control on the FileMaker layout. Since the plugin puts the control on the layout, it is independent of FileMaker. It can stay when switching records and can load data from a container field or from a file on disk:



This is our example database coming with the plugin. It shows you how to pick a PDF file on disk or import a PDF into a container. Then it can initialize the control and show it on the layout. How the PDF looks is defined by the preview handler coming with Windows (10 or newer). Same on macOS, where the preview control has a minimum user interface, usually just a scrollbar.

Since on macOS, we use the QuickLook preview, we can also show other file types, e.g. files from Word or Excel.

Please try and let us know whether you like it.

Expedition to Andernach

Our monkey made a trip to Andernach to show you how nice it looks there and what to expect when you visit our MBS Xojo Conference.

Let's start in the Roman park area behind the hotel:

(more)

MBS Xojo Plugins, version 23.3pr4

New in this prerelease of the 23.3 plugins:
  • Updated DynaPDF to version 4.0.74.217.
  • Fixed a bug in CipherMBS handling of long keys (broken in pr2).
  • Added ZeroPaddingKey property to CipherMBS class.
  • Split PDFKit classes into new MBS Xojo PDFKit Plugin, so we can enable iOS support for them.
  • Added PDFThumbnailViewIOSControlMBS and PDFViewIOSControlMBS controls.
  • Fixed WindowsPreviewHandlerMBS for older Xojo versions, broken in pr2.
  • Fixed Yield property in ArchiveMBS class to be settable.
  • Enabled legacy algorithms for openssl on Windows, so blowfish is available in CipherMBS class.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

MBS FileMaker Plugin, version 13.3pr4

New in this prerelease of version 13.3 of the MBS FileMaker Plugin:
  • Updated DynaPDF to version 4.0.74.217.
  • Tuned localizations.
  • Localized the contextual menu in script workspace.
  • Fixed a crash on quit on macOS, introduced in pr1.
  • Fixed an issue with variable length keys in Encryption.Cipher function.
  • Extended our search for links in the script workspace to also cover links in text of calculations.
  • Enabled legacy algorithms for openssl for Encryption.Cipher function.
Download at monkeybreadsoftware.com/filemaker/files/Prerelease/, in DropBox folder or ask for being added to the DropBox shared folder.

The easiest way to add MBS plug-in to your iOS app

We are happy to see 24U automate adding MBS Plugin to the iOS apps in Xgode with a simple checkbox. If you like to make an iOS app with MBS Plugin to get a branded FileMaker Go for your company, please check this out:

For 5 years Xgode has been the easiest way to turn your FileMaker apps to native apps for iPhone and iPad. It all started the 20th of June, 2018. Now we have an amazing update of this great tool for you because of one great plug-in.

MBS plug-in, one of the most popular FileMaker plug-ins with over 7,100 functions has now become as easy to add to your app as clicking a single checkbox, if you're building your iOS app using our Xgode...

Adding plug-ins has been supported by Xgode from day 1. In February 2021 we added an easy way to add our own plug-ins to your apps by simply clicking checkboxes. And now we are further extending this feature by adding one of the most popular 3rd party plug-ins on the market, the MBS plug-in.

With this addition, using Xgode has become the easiest way to add the MBS plug-in to your iOS apps build with the Claris FileMaker platform.

Let us know if you have any questions.


An award for the Stefanie

Our employee Stefanie Juchmes received an award for best junior developer at the FileMaker Konferenz 2023 in Basel for her engagement in the community and sharing her knowledge in her presentations, blog and magazine articles.

Stefanie proudly shows her award

Thanks for recognizing her commitment to the FileMaker community.
And thanks to all in the community, who support her with ideas.

Stefanie studied computer science at the university of Bonn and got a Bachelor of Science in 2018. She joined our company in 2019 to quickly learn to develop in FileMaker and Xojo. She achieved the FileMaker certification in 2022 and we are very proud of her. Congratulations!

MBS Stand bei der FileMaker Konferenz

Besuchen Sie uns am Stand bei der FileMaker Konferenz in Basel.
Bringen Sie ihre Fragen, W√ľnsche und Probleme mit. Wir helfen gerne!

Foto vom MBS Stand

MBS Plugin Vortrag am Mittwoch um 15 Uhr.

Konferenzangebot: 20% Rabatt auf neue Lizenzen mit Coupon Code FileMakerKonferenz.

Hotel for Xojo conference

Time to let you guys know where our MBS Xojo Conference in Andernach will take place. Our monkey found it near the Rhine:

The Einstein Hotel Am Römerpark in Andernach at the Rhine is a fairly new hotel. There used to be a malt factory in Andernach, but that got demolished a few years ago. Then the archeologists took over, started to dig and found plenty of roman ruins, which are now preserved and shown in the park area behind the hotel. On the Rhine site the hotel was built and opened in 2020.

(more)

MBS FileMaker Plugin, version 13.3pr3

New in this prerelease of version 13.3 of the MBS FileMaker Plugin:
  • Added Preview functions to add a simple PDF file viewer for Windows and macOS on a layout.
  • Renamed WinPreview functions from pr2 to Preview.
  • Fixed an issue with DynaPDF.Optimize when using older dynapdf library with newer plugin (broken in pr2).
  • Enabled legacy algorithms for openssl, so blowfish is available in Encryption.Cipher.
  • Changed ListDialog functions to have select button enabled on macOS if no selection is made, but empty selection is allowed (same as on Windows).
  • Changed ListDialog functions to allow cancel button to be hidden if it has empty label.
  • Added Schedule.GetEnabled and Schedule.SetEnabled functions to temporarily pause all schedules.
Download at monkeybreadsoftware.com/filemaker/files/Prerelease/, in DropBox folder or ask for being added to the DropBox shared folder.

MBS Xojo Plugins, version 23.3pr3

New in this prerelease of the 23.3 plugins:
  • Added 49 new ciphers for CipherMBS class.
  • Added Control function for CipherMBS class for AES GCM tags.
  • Added eight more digest methods to DigestMBS class.
  • Enabled legacy algorithms for openssl, so blowfish is available in CipherMBS class.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

Notarize script

Let me show you a sample script on how to easily notarize a disk image automatically. The script is pretty generic, so you only change the path to go to on the beginning and the pattern to find the dmg file. We use ls command here to find it independent of the version number. And as you see, we pack our archives into a temp folder:

(more)

MBS Xojo Plugins for Android not yet

Since Xojo Inc. announced that the Android target will be included for 2023r2 release, I got a few people asking whether our plugins will be ported. If you like to try Android soon, please join the Testers group.

Well, there is not yet a plugin SDK for Android. We expect there will be one, but first Xojo Inc. has to figure out how to make the plugins works on Android. This includes preparing how to do C++ library compilation, how to bridge that to their Kotlin app and have calls get through including exception handling.

(more)

LibSSH2 update

The new LibSSH2 1.11 update brings a few interesting changes.

Adds support for encrypt-then-mac (ETM) MACs
Adds support for AES-GCM crypto protocols
Adds support for sk-ecdsa-sha2-nistp256 and sk-ssh-ed25519 keys
Adds support for RSA certificate authentication
Adds RSA-SHA2 key upgrading to OpenSSL

The most importing is that newer SSH servers use newer SHA2 hashes and newer encryption algorithms. Since more and more servers disallow older encryption standards and require the newer ones, you may want to update to the new plugins soon to prevent connection problems.

Included in MBS FileMaker Plugin 13.3 and MBS Xojo Plugins 23.3, currently in pre-release testing.

MBS Xojo Plugins, version 23.3pr2

New in this prerelease of the 23.3 plugins: Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

MBS FileMaker Plugin, version 13.3pr2

New in this prerelease of version 13.3 of the MBS FileMaker Plugin: Download at monkeybreadsoftware.com/filemaker/files/Prerelease/, in DropBox folder or ask for being added to the DropBox shared folder.

PDF Viewer control for Windows

For next plugin version we add WinPreviewControlMBS control to our plugins. This one allows you to use the built-in PDF viewer in Windows 10 to show a PDF document.

We leverage what we had before with WindowsPreviewHandlerMBS class, but made it a Xojo control (and a desktop control), so you can just drop it on a window and then have a quick PDF viewer control.

The control includes a scrollbar to scroll down over the pages. There is also a toolbar to move to previous or next page, a field to enter a page number to go to. You can zoom to see whole page or zoom in. There is a contextual menu with commands like going to first and last page, and rotate the page to the left or right.

Since the preview handlers on Windows can also be used to preview RTF, contacts, fonts and mail files, we include multiple examples. You may even find more handlers installed by special software to preview other file types.

Please try and let us know what you think.


Adding QuickLook preview for iOS to Xojo

For 23.3 plugins, we add QLPreviewControllerMBS class for iOS projects in Xojo to preview various file types full screen. If your iOS app needs to show some downloaded file or a PDF file received/generated, you can just preview it.

Since we can enable markup features, you can even annotate and edit PDF documents. The user would get the usual tools and then can save the new PDF to a temporary file. Your application receives an event and then you can save it to where you need it, e.g. into a database.

A QLPreviewController can display previews for many common file types, including the following:

  • iWork documents
  • Microsoft Office documents
  • Rich text format, or RTF, documents
  • PDF files
  • Images
  • Text files with a uniform type identifier that conforms to the public.text type. To learn more, see Uniform type identifiers.
  • Comma-separated values, or CSV, files
  • 3D models in the USDZ format with both standalone and AR views for viewing the model

If you like to use this, please add a property to the screen to hold the panel reference. e.g. "panel as QLPreviewControllerMBS".

Then in the code to show a PDF file, just call a bit code like this:

panel = New QLPreviewControllerMBS
panel.AddItem PDFFile
panel.Present

And it shows the panel full screen. You can add multiple files if needed and use a subclass of QLPreviewControllerMBS to implement events to allow editing or get notified for dismissal of the panel.

Please try with next prerelease and let us know if you have questions.



Control printing in FileMaker with MBS Plugin on Windows

After you read the blog post about printing on macOS, you may wonder how to use these functions on Windows. The answer is that we have different Printer functions. On Windows we show the standard print dialog and click for you since we can't intercept it like we do on macOS. But this is usually quick enough, that you may only see the dialog for half a second.

The Printer.Print function goes like this:

MBS( "Printer.Print"; Printer { ; CloseDialog; Number of Copies; Paper Format; Paper Orientation; Paper Source; Pages From; Pages To; Collate Pages; What; PrintToFile } )

Over time we added quite a few parameters. First one is the name of the printer. Since the match prefers first a complete match and alternative the first left characters need to match. Passing "HP" will pick the first HP printer. After the dialog closed, you can query Printer.PrinterNames function to ask what printer names our plug-in saw in the dialog. (more)

Control printing in FileMaker with MBS Plugin on MacOS

You may want to use our plugin functions to control printing in FileMaker Pro. Built-in to FileMaker is a script step, which allows you to configure printer settings with a dialog and store them in the script. But that is specific to the selected printer and may not work with a different one.

For a bigger solution, you may want to have a table with details for printers, so you can pick the right printer based on what you like to print. For example use a black & white laser printer for some prints, but use a color printer for some reports and print invoices on a printer with some specific later paper in one tray for the first page. And then print other pages of the invoice with different paper.

Let's start and check the PrinterDialog functions for macOS. Please understand that the plugin patches printer functions in FileMaker to put the plugin between FileMaker Pro and macOS. FileMaker triggers the print dialog and our plugin intercepts this to either show the dialog or just sets the values. To install the patch, you use our PrintDialog.Install function. This one is called once before you use other printer functions,

In a script you enable it before printing and then disable it later. In-between you have the FileMaker print script step with dialog enabled. Our plugin intercepts the dialog and after the call, you call PrintDialog.GetLastSettings to query the settings. Here is the sample script:

Set Variable [ $r ; Value: MBS("PrintDialog.Enable") ]
Print [ With dialog: On ]
Set Variable [ $r ; Value: MBS("PrintDialog.Disable") ]
Set Variable [ $r ; Value: MBS("PrintDialog.GetLastSettings") ]
Set Field [ Printer Dialog::LastSettings ; $r ]


Now you can run this script and print out with various options like the different trays on the printer. Inside the last settings, you find e.g. the name for the tray used with the key InputSlot. Of course you may just cancel the print jobs before the printer actually prints them. (more)

EPS support deprecated in macOS Sonoma

It looks like Apple removes EPS support for macOS Sonoma, so we deprecate the functionality around that in our plugins. Currently the features still works and can be used, but once you upgrade, the MBS functions will return an error or raise an exception.

For FileMaker:
For Xojo:
Not sure about the reason. From usage statistics showing that nobody uses it, to expired licenses with Adobe or the retirement of the relevant staff, all is possible.

If you need EPS conversion, you may check command line tools like Ghostscript to do the same.

Our plugins will carry on the functions until we move to newer Xcode and newer macOS next year, where we may have to remove them.

Xojo's tenth birthday

Xojo turns ten years old today.

On 4th June 2013, Xojo Inc. announced the name change from Real Studio to Xojo, the new IDE and the new license model.

Originally Xojo started over 25 years ago as CrossBasic, got rebranded as REALbasic and released in 1998 to the public. In 2010 the name was changed to Real Studio before in 2013 the company and its product were renamed to Xojo. See Wikipedia for details.

Congratulations to the team and looking forward to the next 20 years!

See you at the next conference! (more)

MBS Xojo Plugins, version 23.3pr1

New in this prerelease of the 23.3 plugins:
  • Added ConvertImage method for WindowsPDFDocumentMBS class.
  • Added Describe method to GMImageMBS class.
  • Added evaluate method to XMLDocumentMBS class to do XPath queries.
  • Added FilterObjectArray method in JSONMBS class.
  • Added RegisterRGBAImage and MarkerDefineRGBAImage methods to ScintillaControlMBS class.
  • Added tag property to CURLSMultiMBS and CURLSMBS classes.
  • Added XMLXPathResultMBS class.
  • Fixed CURLSMultiMBS class to set AutoPerform to true for shared instance.
  • Improved ScintillaControlMBS to better recognize xojo comments.
  • Our plugin now requires glibc 2.25 for openssl on Linux (from 2017)
  • Removed PHP classes.
  • Updated CURL library to version 8.1.2.
  • Updated LibSSH to version 1.11.0.
  • Updated MongoDB-c library to version 1.23.4.
  • Updated openssl library to version 3.1.1.
  • Updated RabbitMQ-c library to version 0.13.
  • Updated SQLite to version 3.42.0.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

MBS FileMaker Plugin, version 13.3pr1

New in this prerelease of version 13.3 of the MBS FileMaker Plugin: Download at monkeybreadsoftware.com/filemaker/files/Prerelease/, in DropBox folder or ask for being added to the DropBox shared folder.

Archives

Sep 2023
Aug 2023
Jul 2023
Jun 2023
May 2023
Apr 2023
Mar 2023
Feb 2023
Jan 2023
Dec 2022
Nov 2022
Oct 2022
Sep 2022
Aug 2022
Jul 2022
Jun 2022
May 2022
Apr 2022
Mar 2022
Feb 2022
Jan 2022
Dec 2021
Nov 2021
Oct 2021
Sep 2021
Aug 2021
Jul 2021
Jun 2021
May 2021
Apr 2021
Mar 2021
Feb 2021
Jan 2021
Dec 2020
Nov 2020
Oct 2020
Sep 2020
Aug 2020
Jul 2020
Jun 2020
May 2020
Apr 2020
Mar 2020
Feb 2020
Jan 2020
Dec 2019
Nov 2019
Oct 2019
Sep 2019
Aug 2019
Jul 2019
Jun 2019
May 2019
Apr 2019
Mar 2019
Feb 2019
Jan 2019
Dec 2018
Nov 2018
Oct 2018
Sep 2018
Aug 2018
Jul 2018
Jun 2018
May 2018
Apr 2018
Mar 2018
Feb 2018
Jan 2018
Dec 2017
Nov 2017
Oct 2017
Sep 2017
Aug 2017
Jul 2017
Jun 2017
May 2017
Apr 2017
Mar 2017
Feb 2017
Jan 2017
Dec 2016
Nov 2016
Oct 2016
Sep 2016
Aug 2016
Jul 2016
Jun 2016
May 2016
Apr 2016
Mar 2016
Feb 2016
Jan 2016
Dec 2015
Nov 2015
Oct 2015
Sep 2015
Aug 2015
Jul 2015
Jun 2015
May 2015
Apr 2015
Mar 2015
Feb 2015
Jan 2015
Dec 2014
Nov 2014
Oct 2014
Sep 2014
Aug 2014
Jul 2014
Jun 2014
May 2014
Apr 2014
Mar 2014
Feb 2014
Jan 2014
Dec 2013
Nov 2013
Oct 2013
Sep 2013
Aug 2013
Jul 2013
Jun 2013
May 2013
Apr 2013
Mar 2013
Feb 2013
Jan 2013
Dec 2012
Nov 2012
Oct 2012
Sep 2012
Aug 2012
Jul 2012
Jun 2012
May 2012
Apr 2012
Mar 2012
Feb 2012
Jan 2012
Dec 2011
Nov 2011
Oct 2011
Sep 2011
Aug 2011
Jul 2011
Jun 2011
May 2011
Apr 2011
Mar 2011
Feb 2011
Jan 2011
Dec 2010
Nov 2010
Oct 2010
Sep 2010
Aug 2010
Jul 2010
Jun 2010
May 2010
Apr 2010
Mar 2010
Feb 2010
Jan 2010
Dec 2009
Nov 2009
Oct 2009
Sep 2009
Aug 2009
Jul 2009
Apr 2009
Mar 2009
Feb 2009
Dec 2008
Nov 2008
Oct 2008
Aug 2008
May 2008
Apr 2008
Mar 2008
Feb 2008