Decouple two features for smaller application sizes

Let's say you make a library, a plugin or just your own set of classes. You use them in various applications, so you add them to your projects. But you don't use all parts always. If you can segment them and maybe help the Xojo compiler, it can strip out unused project items and produce smaller applications.

Use cases may be one project, which can be compiled to both the full version and a demo version. Or a Pro and a Lite version. Or a viewer vs. editor version of the application. Or simply you have a ton of utility classes, but don't need them for the current app. Then you would like to not include all the parts.

We use various of this techniques with MBS Plugin to reduce the size of your built applications. We actively avoid dependencies between plugins as much as possible.

Project Items

The Xojo compiler can strip out whole items in the project. A window that is never referenced in the current version, will be stripped. You can wrap the only reference for one part in a #if section and avoid referencing it in the smaller app version:

#if ProVersion
   Dim e as new EditorWindow
   e.show
#else
   MessageBox "Please buy Pro version."
#endif

You may define boolean constants in a module to do this. Toggle them either manually, via IDE scripting or build steps with scripts. This also helps with target constants to only include some items that are only for one platform:

#if targetWindows then
   WindowsModule.DoSomething
#elseif targetMacOS
   MacModule.DoSomething
#endif

The other module can be stripped. Same for images, classes, controls, windows and other project items.

(more)

MBS Xojo Conference Update

About two months left until we start our MBS Xojo Developer Conference in Andernach, Germany.

More attendees

We got a few more registrations so we can add Denmark, Sweden and Austria to the country list:

🇩🇪, 🇳🇱, 🇬🇧, 🇺🇸, 🇫🇷, 🇨🇭, 🇪🇸, 🇨🇦, 🇵🇱, 🇦🇹, 🇩🇰 & 🇸🇪

New Session

Jeremy will come and talk about handling exceptions. Of course you can ask him questions about mobile development as he has a very successful iOS app business using Xojo.

Managing exceptions like a pro
Detecting bugs and fixing them is very important as a developer.
Managing exceptions can take a lot of time to implement. This session will present Sentry.io using an open-source set of classes written in Xojo.
by Jérémie Leroy
(more)

ISO FileMaker Magazine: MBS JavaScript Power

Check out the FileMaker Magazine website. Matt Petrowsky provides a huge collection of training videos around FileMaker. And recently he started a series of videos about our MBS Plugin:

Watch it on filemakermagazine.com and subscribe to his YouTube channel. The free preview is 15 minutes and the full video is 54 minutes.

Matt shows what cool things he built with our JavaScript and JavaScriptWebKit functions.

More videos from Matt about MBS Plugin in this playlist.


iODBC update needed

Recently a few clients run into a problem with using ODBC databases:

IM004 [iODBC][Driver Manager]Driver's SQLAllocEnv() failed

The ODBC manager (called iODBC) can't load the ODBC driver for the database you like to connect to. By default on macOS we load "/usr/lib/libiodbc.2.dylib" as the ODBC manager, but this library seems to be outdated. (more)


MBS FileMaker Plugin, version 14.1pr3

New in this prerelease of version 14.1 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.

You can subscribe to our FileMaker mailing list to get notified for new pre-release and release versions.


MBS Xojo Plugins, version 24.1pr3

New in this prerelease of the 24.1 plugins:
  • Updated DynaPDF to version 4.0.83.243.
  • Implemented better MovableByWindowBackground for OverlayMBS class on Windows to work with mouse events.
  • Fixed a bug in DateDifferenceMBS class related to an overflow in January.
  • Enabled allTouches in NSEventMBS class for macOS.
  • Added touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent and touchesMovedWithEvent events to CanvasGesturesMBS class.
  • Fixed an issue in MBS Xojo SQL Plugin where an error message would be cut on the first character improperly encoded.
  • Improved MBS Xojo SQL Plugin to better return error messages if the ODBC driver provided them with ASCII instead of UTF16/32 encoding.
  • Added willShowContextualMenu and didCloseContextualMenu events to 34 controls.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

You can subscribe to our Xojo mailing list to get notified for new pre-release and release versions.


Printing a WebViewer in FileMaker

At Claris Engage we got the question about how to print a web viewer in FileMaker. While FileMaker has nothing built-in in that direction, we can provide a solution in our MBS FileMaker Plugin with the WebView.Print function.

Print

You can add a print button to the layout, assign it a "Set Variable" script step to run and then call MBS( "WebView.Print"; WebViewerRef ) there. For the WebViewerRef parameter you can pass the name of the web viewer and our plugin should find it on the current window. For more difficult cases you can use WebView.FindByName and specify the window with a window reference.

It may be useful to tune the website beforehand with some JavaScript or CSS to hide content you don't want to print. Our documentation website uses extra CSS files for media=print, so we can hide the sidebar with navigation for a print out. If you like to hide something for your printout, you may want to use a bit of JavaScript with WebView.Evaluate to hide an element:

document.getElementById('HelpNavigation').style.display = 'none';

We frequently hide things like navigation bars, advertisements or the headers/footers from a website. (more)

Use MapKit to validate addresses

Recently a client asked if we could help on entering addresses. Like to fix typos, lookup zip codes or split addresses into fields like for street name, house number and city. We got an idea and made a new sample file for you to validate address with MapKit.

(more)

MBS FileMaker Plugin, version 14.1pr2

New in this prerelease of version 14.1 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.

You can subscribe to our FileMaker mailing list to get notified for new pre-release and release versions.


MBS Xojo Plugins, version 24.1pr2

New in this prerelease of the 24.1 plugins:
  • Updated our headers for NetSNMP library.
  • Added AVSpeechSynthesizerMBS and related classes.
  • Changed SetLicenseKey in DynaPDFMBS class to raise exception if you call it in debug mode after calling SetLicenseKeyGlobal to suggest you to remove the SetLicenseKey call.
  • Updated DynaPDF to version 4.0.83.242.
  • Changed Bounds, GPTS and LPTS in DynaPDFMeasureMBS to be double.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

You can subscribe to our Xojo mailing list to get notified for new pre-release and release versions.


Detect and disable advanced database tools

At Claris Engage we learnt from Wim Decorte that it may be better to disable advanced tools if possible. Quite a few ways to hack a FileMaker solution go by using the debugger to check scripts or data viewer to read or evaluate some things. Advanced tools are great for developers, but normal users may not need these tools. You can use the checkbox in the preferences dialog:

Let's go and check via plugin on whether advanced tools are enabled. You may have scripts check for this and or react on the outcome. e.g. if enabled and user is not developer or admin, then disable it automatically for the next launch of FileMaker. Or included the status in some reporting to server, so you know which user has it turned on. (more)

Claris Engage conference thoughts

After five years of pause, Claris finally invited everyone to an in-person conference. It was a bit different with a chance to visit an Apple campus in Austin, Texas. About 620 people came and we had a great conference.

The weather was great for winter times. We feared it could be cold and freezing, but it turned out to be a very nice week with sunshine and above 20 degrees Celsius. I could walk outside with just a t-shirt.

These office buildings from Apple are phenomenal. Well designed with a lot of details to discover. We had over a dozen meeting rooms for presentations and lots of smaller rooms in various sizes for your own meet-ups. And the basement has a nice theater with a few hundred seats for the big sessions. The keynote was split in two rooms since all people don't fit in one room here. (more)

FileMaker vs. CURL versions

Here is a list of which FileMaker version includes which CURL version:
FileMaker versionCURL Version
11.0.47.19.4
12.0.57.21.6
13.0.97.21.6
14.0.47.38.0
15.0.37.44.0
16.0.47.51.0
17.0.37.58.0
18.0.37.62.0
19.0.17.62.0
19.1.37.62.0
19.2.17.62.0
19.3.17.62.0
19.3.27.62.0
19.4.17.62.0
19.5.37.76.0
19.67.83.0
20.17.83.0
20.27.83.0
20.37.83.0
(more)

FileMaker Conference dotfmp.berlin 2024

Did you sign up for FileMaker Conference dotfmp.berlin 2024?

This conference is organized by Egbert Friedrich and takes place from 6th to 8th June 2024 in Berlin, Germany.

As the conference is in English, this is your chance to meet people from around the world at a conference in Europe. And for a lot of people it's easier to get to Berlin than to cross the atlantic and deal with US immigration officers.

Who
dotfmp is an effort of various leading European FileMaker Developers. It is meant to bring all kinds of higher level developers together to share knowledge, educate and challenge each other.
When
dotfmp starts at the 5th June 2024 in the later afternoon with a relaxed "Beer and Sausages" in one of the most famous Berlin Beergarden. The session days itself last from 6th until 8th June with various socializing events in the evenings.
What
dotfmp is a 3 Day-Unconference, Meetup, Hangout or Barcamp. It is an informal and self-organized effort to meet on a personal base.
Where
dotfmp takes place in one of the most famous spots in Berlin. The Schankhalle Pfefferberg is located in a vibrant area with a very short walking distance to all the famous restaurants.
Why
We feel there are far too few possibilities to talk to, learn from, and hangout with fellow developers in a relaxed and informal environment. And we'd like to share work and get feedback from people chewing on similar challenges.


If you like to join the conference and present something, please register soon. First 25 tickets are sold already!

Can FileMaker do that?

When a client asks you whether you can do something in FileMaker, please don't just check FileMaker documentation, but also check if MBS FileMaker Plugin has something for you. Over the past 18 years we got a lot of requests and consequently added a lot of functionality to our plugin. Let's show you a few examples:

Switch printers

While FileMaker has a printer setup script step, you may prefer to use our plugin to switch printers and set various options like which tray to use or whether to print color or b&w. Our plugin has functions to control the printer on macOS and Windows and allows you to automatically lookup the best printer in the database for each workstation in a company. Then print to the nearby printer and dynamically pick paper source, format and collation options.

(more)

Did you know that you can load extensions in SQLite?

For a few years now it is possible to load an extension both in MBS Xojo SQL Plugin using SQLite as well as into Xojo's built-in SQLiteDatabase. But now we have something new for you here:

You can register custom functions to use in the SQLite database and define them in Xojo.

(more)

MBS Xojo Plugins, version 24.1pr1

New in this prerelease of the 24.1 plugins:
  • Added MovableByWindowBackground property for OverlayMBS class.
  • Added requestWriteOnlyAccessToEvents, requestFullAccessToReminders and requestFullAccessToEvents to EKEventStoreMBS class.
  • Updated dyncall library to version 1.4.
  • Added new kCallMode* constants for DeclareFunctionMBS class.
  • Changed MidiThruConnectionMBS class to be a subclass of MidiObjectMBS class.
  • Added Find method to MidiThruConnectionMBS class.
  • Changed kOptionLibrarySeparator in SQLConnectionMBS class to be a shared method to return ";" on Windows and ":" on macOS/Linux.
  • Improved Data Detector example to include a contextual menu routine for showing actions based on NSDataDetectorMBS class.
  • Fixed a problem with MacBase and CURL plugin loading on older macOS versions.
  • Implemented IgnoreMouseClicks for Windows in OverlayMBS class. Allows mouse clicks to fall through to window behind.
  • Fixed PortAudioStreamRecorderMBS to enforce sample format paFloat32 when using OpenStream() to prevent errors later.
  • Added SQLiteFunctionMBS class to add custom SQLite functions for SQLite database connections.
  • Added Path property to InternalSQLiteLibraryMBS module.
  • Added NWPathMonitorMBS class for macOS/iOS to monitor available network.
  • Added NSProcessInfoPowerStateDidChangeNotification for NSProcessInfoMBS class.
  • Added NWPathMBS, NWEndPointMBS and NWInterfaceMBS classes.
  • Updated SQLite to version 3.45.1.
  • Added new variant of FromDiff method in JSONMBS class with KeyToCopy parameter to copy primary keys.
Download: monkeybreadsoftware.de/xojo/download/plugin/Prerelease/ or from DropBox.
Or ask us to be added to our shared DropBox folder.

You can subscribe to our Xojo mailing list to get notified for new pre-release and release versions.


MBS FileMaker Plugin, version 14.1pr1

New in this prerelease of version 14.1 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.

You can subscribe to our FileMaker mailing list to get notified for new pre-release and release versions.


Andernach City Outlook

Our Xojo conference in Andernach comes closer week by week and we are very excited to host you all in our homeland.

On the last weekend I walked to the Krahnenberg outlook over Andernach. That is a hike you could do if you have an hour or two of spare time in Andernach. The shortest and steepest way is 1.3 km from the Einstein Hotel, but a longer 2.4 km way over road is available or a 2.0 km way along the Rhine and up through the forest.

(more)

MBS @ FMTraining.TV - Making FileMaker Apps for the Apple VisionOS (With MBS)

Check out the FMTraining.tv website. Richard Carlton and his team do a daily free live stream about FileMaker to watch.

A few days ago Christian Schmitz from Monkeybread Software joined a live episode to talk a bit about the MBS FileMaker Plugin. Watch it on YouTube.

Let's take the FileMaker iOS SDK to make an application for iPhone first. Basically we follow these instructions from Claris. Then we run it in the Vision OS simulator. We explore what visionOS offers and even integrate the MBS FileMaker Plugin. Finally we build an iOS app to run on macOS.

(more)

Archives

Feb 2024
Jan 2024
Dec 2023
Nov 2023
Oct 2023
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