Our Blog, Filemaker only, Xojo only, Archive (older), Follow us on Twitter or Facebook.

Lost backup drive

Tuesday 28 April 2015 at 08:19 am
Bad things happen. Security check at immigration took longer than expected, over an hour. Maybe the officer had his first day after getting the job or it was due to the people in line before us needing extra checking, but it was a long waiting time.

When we got out luggage, we got to hotel and there we noticed missing items. I'm not sure who steals stuff like two hairbrush or a belt, but those are clearly not here. And of course cheap to buy and ours are used and certainly not new. What's also missing is a hard disk with a backup copy of my Macbook. It's encrypted (good I do that usually for all my disks!), but I fear it may be cracked anyway.

My hope is the thief has a Windows machine, so the disk appears hopefully like an unformatted one and he is prompted to format which overwrites the first sectors of the disk. Or they have a Mac and format it anyway, because they want to use it and don't know the password.

So if you see someone who has a good portion of source code from MBS, e.g. source code of one of our plugins, please inform us.
Our databases with customer data has an additional encryption and we don't process credit cards directly. Nothing to worry in those directions for you.

If you have hard disks, please encrypt them.
The tools are included with OS X and easy to use. Just a checkmark and a good password.
And don't forget, the hard disk encryption of your computer is only helpful if the computer is turned off while being stolen!

FileMaker Developer meeting in Dallas

Monday 27 April 2015 at 03:52 am
Are you a FileMaker from Dallas, Texas area?

We meet with a group of FileMaker developers on Monday night, April 27th, and we're having a casual dinner get together. The meeting is at 6:30pm at Chiladas at 4448 Lovers Lane, Dallas, TX 75225 where Taylor Sharpe reserved a table for us.

If you like to come, please be sure to contact us so we know how many seats we need.

PS: Friday (1st May) is the regular meeting at 11am with FMNUG which you also can attend.

MBS Releases the MBS Xojo AudioPlayer Kit in version 1.0

Sunday 26 April 2015 at 4:41 pm
Nickenich, Germany (April 26th, 2015) -- Monkeybread Software releases version 1.0 of the MBS Xojo AudioPlayer Kit.

The MBS Xojo AudioPlayer Kit provides you with a few useful classes for audio playback for your Xojo iOS application.
  • Wrapper for iOS AudioPlayer class in AVFoundation
    • Play sounds loaded from memory and file
    • Events like DidFinishPlaying
    • Audio Channel assignment
    • average and peak power per channel
    • volume, pan and rate controls
    • play, pause and stop methods
    • query/set current position
  • Midi Player class to use Appleā€™s midi synthesizer
    • Open digital synthesizer for midi note playback
    • query instruments and set instrument per channel
    • send midi notes
    • Start and Stop method
    • Volume, Tuning, Reverbvolume properties
    • query CPU load

Wrapper Features
  • For Xojo 2015r1
  • Using exception handling to track error
  • Test code included
  • All classes with MB postfix to avoid name conflicts.
  • All module definitions are protected to avoid conflicts
  • Inline documentation
  • Full Source code, no encryption
  • Works for 32bit and 64bit targets.
Our AudioPlayer Kit requires Xojo 2015r1 or newer.

The AudioPlayer Kit is available for $49 USD or 39 Euro (+VAT if needed).

You can learn more and try the sample application on our website.
Please do not hesitate to send us comments, questions or feedback.

MBS Xojo / Real Studio Plugins, version 15.1pr6

Thursday 23 April 2015 at 8:39 pm
New in this prerelease of the 15.1 plugins:
  • Fixed bug with FTPParseMBS class not giving right name.
  • Upgraded Xcode to version 6.3.1
  • Added TesseractMBS.SetResolution.
  • Fixed MacHIDMBS to run also when a modal dialog is visible.
  • Fixed a bug where Calls plugin part would be included always for some projects.
  • Fixed crash with InitJPEG function introduced in pr5.
  • Added QCCompositionRepositoryMBS.loadPlugIn function.
Download: macsw.de/plugin. Or ask us to be added to our shared Dropbox folder.

MBS FileMaker Plugin, version 5.1pr6

Thursday 23 April 2015 at 3:55 pm
New in this prerelease of the 5.1 plugins:
  • Added Clipboard.GetFiles and Clipboard.SetFiles functions.
  • Upgraded Xcode to version 6.3.1
  • Fixed Twain.SetDuplexEnabled so you can now disable duplex.
  • Added OCR.SetResolution function.
  • Added parameter to Text.DecodeFromHTML to decode html entities, but leave xml entities there.
  • Added function FM.NULL to get null values to pass to SQL.SetParamValue(s).
  • Added parameter to XML.Query to ignore errors in parsing.
  • Added SQL.GetFieldValue, SQL.GetParamValue, SQL.SetParamValue and SQL.SetParamValues.
  • Added FM.SQL functions to get SQL results in native data types.
  • Added SerialPort.SetDataAvailableHandler and SerialPort.ClearDataAvailableHandler functions.
  • The Audit.Change function now returns an error message if the given table name is invalid.
Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

REALbasic and Real Studio still supported

Monday 20 April 2015 at 5:03 pm
While Xojo Inc. just delivered their release 2015r2 version, we still support REALbasic and Real Studio.

The reasons why people don't use the lastest version are very different. Some don't like the new IDE, some have older OS versions or older hardware to support and some don't want to spend money on a new license as long as their existing version works fine. For all of them, we have plugins at hand.

So even our latest addition to the plugin, the markdown classes, are available for REALbasic 2006r4 and even PowerPC. Enjoy it!

Execute SQL in FileMaker and get back native field types

Saturday 18 April 2015 at 1:15 pm
Yesterday I met some FileMaker developers in Munich and in our discussion at one point there was a talk about the fact that executing SQL in FileMaker gives you only text. No way to get back the field value in it's original type. Containers are returned as file name, dates/times converted to text as well as numbers.

So today I wrote a few new plugin functions:

FM.SQL.Execute takes a SQL query and optional a file name and parameters. The query is executed and the function returns an error message or on success a reference number. This reference number can be used to query data from the result. FM.SQL.RowCount tells you the number of rows while FM.SQL.FieldCount tells you the number of fields in each row. FM.SQL.Field returns a field value and FM.SQL.FieldType the type of that field. Finally you use FM.SQL.Release to release the result from memory.

The great thing is that you can now use the plugin to run queries and get containers, dates, times and numbers back from the result without conversion to text. With next prerelease plugins we'll include an example database which shows this.

FileMaker and Xojo Meetings for Munich and Nuremberg

Thursday 16 April 2015 at 2:11 pm
We arrived in Munich and enjoy the city. Tonight is our Xojo meeting followed by the FileMaker meeting tomorrow.
Someone wants to join? We already have a couple of people on the list, but one or two can be added spontaneously.

16th April, Xojo meeting in Munich
17th April, FileMaker meeting in Munich
20th April, Xojo meeting in Nuremberg
21st April, FileMaker meeting in Nuremberg

If you like to join us for dinner, please add yourself. We'll reserve a table in a nearby restaurant, meet and chat about development. Entry is free, but you have to pay for your dinner and drinks.

MBS FileMaker Plugin, version 5.1pr5

Tuesday 14 April 2015 at 11:56 pm
New in this prerelease of the 5.1 plugins:
  • Fixed a problem with Audit function not writing data in FileMaker 12.
  • Optimized some functions for future FileMaker version.
  • Functions like IsServer now also work if demo mode expired.
  • Improved some of the Windows Webviewer functions to handle memory usage better.
  • Added Windows support for WebView.LoadHTML.
  • Fixed a bug with WebView.GetFormTextAreaValue on Windows which did crash sometimes.
  • Added MarkDown functions.
  • Fixed WebView.SetFormSelectValue to work also if there is no form name given.
  • The Webviewer Form and Field functions now find fields and forms by ID on Mac and not just by name.
  • Fixed bug in Text.EncodeToHTML.
  • Upgraded Xcode to version 6.3
  • Future plugin versions may decide to query server for update information while in development.
  • Added EnvironmentVariables functions.
Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

MBS Xojo / Real Studio Plugins, version 15.1pr5

Tuesday 14 April 2015 at 9:27 pm
New in this prerelease of the 15.1 plugins:
  • Improved some of the Windows Internet Explorer HTMLViewer functions to handle memory usage better.
  • Added HTMLViewer.IELoadHTMLMBS function to load html into HTMLViewer on Windows without temp file.
  • Added FieldID caching for Audit logging to speed up some queries for Field IDs.
  • Fixed memory leak if you use JPEGImporterMBS.InitJPEG twice without FinishJPEG in-between.
  • Added checks to SUUpdaterMBS to raise exceptions if you use class without loading framework.
  • Added markdown classes.
  • Added CIImageMBS.RenderPictureWithAlphaMT function.
  • Upgraded Xcode to version 6.3
  • Added properties and constants to NSEventMBS for force touch.
  • Future plugin versions may decide to query server for update information when used in the IDE.
Download: macsw.de/plugin. Or ask us to be added to our shared Dropbox folder.

Bug of the day: onbeforeunload crash

Monday 13 April 2015 at 11:17 pm
Today I spend a couple of hours tracking down a bug with FileMaker and webviewer.

So if you load a webpage in a webviewer and this website installs window.onbeforeunload event and you close the FileMaker window or switch to layout mode, FileMaker crashes.
Normally the onbeforeunload event is used to warn user that closing window will loose form data. This is normally very useful, but FileMaker doesn't wait for the dialog to complete. Instead it crashes.
To solve this problem I found after a few hours that you only need to clear the onbeforeunload event like this:

MBS( "WebView.RunJavaScript" ; "HTMLEditor"; "window.onbeforeunload = null;")

So the solution for client we simply call this whenever we do something with webview and especially before we switch layout.

German FileMaker Conference in Hamburg

Sunday 12 April 2015 at 8:09 pm
The German Filemaker conference is scheduled for Hamburg from 8th to 10th October 2015.

Registration is opened and 180 guests are expected to come. Last year sold out, so be quick.

MBS Xojo / Real Studio Plugins, version 15.1pr4

Wednesday 08 April 2015 at 5:58 pm
New in this prerelease of the 15.1 plugins:
  • Added functions for WebUIDelegateMBS class to support multiple selection in file dialog.
  • Added CaseSensitive parameter for Map and Set classes.
  • Added new Map, Set, HashMap and HashSet classes supporting text data type.
  • Fixed memory with substring functions in RegExMBS class.
  • Improved error message handling for Firebird database connector part in SQL Plugin.
  • Added more methods for NSTextAttachmentMBS class.
  • Fixed bug in NSTextAttachmentMBS.attributedStringWithAttachment.
  • Fixed NotifcationObserverMBS.
  • Setting Modality property in NavigationDialogOptionsMBS to app modal by default now.
  • Added Destination MemoryBlock parameter for ReadRGB and ReadRGBMemoryStep in TiffPictureMBS class.
  • Added CGDisplayMBS.RefreshRate function.
  • Added enabled, color and image properties to NSTabViewItemMBS.
  • Improved NSTabViewItemMBS to have debugger visible properties.
  • Added option MySQLRetryAutomaticallyOnDeadLock for SQLCommandMBS. If true, the plugin will retry query 3 times in case MySQL reports a deadlock.
  • Added WindowBitmapMBS module with HBITMAP and HDIB related functions.
  • Added HBitmapToPictureMBS and PictureToHBitmapMBS functions.
  • Added CreateHBITMAP functions for GM16ImageMBS, GMImageMBS, IMImageQ8MBS, IMImageQ16MBS and IMImageQ32MBS.
Download: macsw.de/plugin. Or ask us to be added to our shared Dropbox folder.

MBS FileMaker Plugin, version 5.1pr4

Wednesday 08 April 2015 at 11:52 am
New in this prerelease of the 5.1 plugins:
  • Added SQL.GetFieldNameList, SQL.GetFieldValueList, SQL.GetParamNameList and SQL.GetParamValueList functions.
  • Added Plugin.SetSuccessReturn function.
  • Added Folders.UserTrash function.
  • Added WebView.InstallMultiFileOpenDialog function to allow multiple selection file dialogs in a webviewer.
  • Changed PDFKit preview rendering of PDF pages to take care of rotation.
  • Added FM.DisableMouseWheel for Windows to block mouse wheel usage.
  • Improved error message handling for Firebird database connector part in SQL functions.
  • Changed RegEx.FindMatches to switch ReturnWholeMatch parameter to true if you don't have captures in your search pattern.
  • Added Plugin.SetSuccessReturn and Plugin.GetSuccessReturn to modify what plugin returns for success.
  • Added SQL error code into error messages for SQL.Execute and other functions.
  • Fixed problem in Files.GetPathFromNodeID function.
  • Added text encoding parameter for Barcode functions. Default stays at UTF-8.
Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

Multiple file selection for WebViewer/HTMLViewer

Tuesday 07 April 2015 at 7:46 pm
With HTML 5 the HTML Input File tag can have a multiple attribute and allow multiple files to be selected. But you only get that in an application if the application supports it. FileMaker and Xojo don't not really support it, but we can add it with our plugin:

For MBS FileMaker Plugin you can use the WebView.InstallMultiFileOpenDialog function. The next time you click such a file button, the dialog allows multiple selection if website supports it also.

With MBS Xojo Plugin, you can use WebUIDelegateMBS class. We'll add there new methods and parameters for multiple files support.
All coming soon with new plugin prerelease.

Bug of the day: Not enough arguments

Friday 03 April 2015 at 6:19 pm
A normal day in work. I already filled a few new bug cases for both Xojo and FileMaker.
And some things drive you crazy. Like this one:

What do I now? Double clicking it brings me to the window editor. This happened in a huge project with dozens of windows and this window with that error reported has something like 50 controls on it and tons of methods and properties. To show the size of the project, well printed source code would fill over 3500 pages here. No idea what modifications causes this and how to find it, but we can check svn for recent changes. What do you do if project is not in a version tracker? Get a copy from last backup?

Well, first I'd like to point out that a compiler has to report errors as detailed as possible. I personally hate an error where compiler doesn't tell me where something happened. Web projects love to tell me that there was an exception, but can't tell me where, because it's somewhere in the framework and a secret. Over time some developers including me made feedback cases for more helpful errors and exceptions with messages giving details. For example OutOfBoundsException (Case 12703), Illegalcastexception (Case 31571, implemented), TypeMismatchException (Case 38829) and NilObjectException (Case 18190).

Now the problem above. It's a method calling a method in parent class via super and it's missing parameters. A small problem and normally those missing parameters are reported correctly. Just with super there are problems. I hope it's fixed soon.

PS: Feedback case 38824.

Tip of the day: MySQL Error 1213

Wednesday 01 April 2015 at 5:52 pm
With MySQL it can happen that you get an error 1213 with message "Deadlock found when trying to get lock; try restarting transaction". Our MBS Xojo SQL Plugin will report that as exception or through error properties. Now we had the idea that we do the restart of the operation for you. So if you set with next plugins (15.1pr4) the option MySQLRetryAutomaticallyOnDeadLock to true for either Command or Connection, the plugin will try three times. If it gets error 1213, it will automatically try again after waiting 10 milliseconds.

The reason we put it in the plugin right in the execute method is to make sure all attempts can happen in background on the same thread. Using ExecuteMT we do the operation on a preemptive helper thread and if we need two or three attempts the other threads of your application are not influenced and do their work as usual.

Update: This is for a small application which does not use transactions. If you use transactions, this switch may result in problems as it does only repeat last SQL command. If you use transactions, please code it yourself and do proper rollback and start again with a new transaction.

Kit vs. Plugin for Bonjour

Tuesday 31 March 2015 at 2:02 pm
As you may know we offer both a MBS Xojo Network Plugin and a MBS Xojo Network Kit and both offer Bonjour classes. Now a client asked what to buy and the answer can be both. Just take a look on the platforms we support Bonjour:As you see, you can use the Kit for iOS and the plugin for desktop projects. If your desktop project only runs on Mac, you could use the Kit alone and enjoy same code for iOS and Mac development.

PS: If you still use DNSServiceDiscovery classes from MacOSX plugin, please migrate to newer DNSService classes.
The linux plugin uses the avahi library which is compatible to Apple's Bonjour.

MBS FileMaker Plugin, version 5.1pr3

Monday 30 March 2015 at 8:06 pm
New in this prerelease of the 5.1 plugins:
  • Marked a lot of functions to not be available on server due to FileMaker Server not performing Script calls on the server.
  • Added TimeOut option for Socket.Connect.
  • Tracing script calls now shows also name of current script, file, user and host if available.
  • Fixed ZipFile.WriteText function. Now text is again parameter 1 and not 2.
  • Added functions FM.CurrentThreadID, FM.IsMainThread and FM.MainThreadID.
  • Improved copy script text button. Should not copy the list of available script steps.
Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

MBS Xojo / Real Studio Plugins, version 15.1pr3

Monday 30 March 2015 at 6:44 pm
New in this prerelease of the 15.1 plugins:
  • Added Picture.GrayScale2MBS function.
  • Improved Carbon Printer Manager function. Some methods were deprecated by Apple and are removed. Others have been added.
  • QCCompositonMBS object can now be put into dictionaries and variants for conversion to NSDictionary.
  • Fixed NSTokenFieldMBS class which broke in 15.0.
Download: macsw.de/plugin. Or ask us to be added to our shared Dropbox folder.

Older blog entries:

2015-03-29 FileMaker meetings in Texas
2015-03-29 The 2015 Xojo Developer Conference, one month left
2015-03-28 FileMaker and Xojo Meetings for Munich and Nuremberg
2015-03-26 FileMaker DevCon in 4 months
2015-03-26 ChartDirector 6 progress
2015-03-25 XojoTalk podcast
2015-03-25 Warning of the day: Xcode vs. Xojo versions
2015-03-24 MBS SQLite Extension in version 1.4
2015-03-23 MBS Xojo / Real Studio Plugins, version 15.1pr2
2015-03-23 MBS FileMaker Plugin, version 5.1pr2
2015-03-21 ListDialog with group headers
2015-03-20 Tip of the day: PDF print settings
2015-03-18 FileMaker and Xojo Meetings for Munich and Nuremberg
2015-03-17 Passing parameters via dictionary functions
2015-03-17 MBS Releases the MBS Xojo Addressbook Kit in version 1.0
2015-03-16 MBS Xojo / Real Studio Plugins, version 15.1pr1
2015-03-16 MBS FileMaker Plugin, version 5.1pr1
2015-03-11 Centered window resizing for Xojo Cocoa applications
2015-03-11 Installing 32 bit libraries on Ubuntu 14
2015-03-10 MBS Releases the MBS Xojo Network Kit in version 1.0


Apr 2015
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
XML: RSS Feed XML: Atom Feed