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

Thanksgiving Sale

For this year's Thanksgiving in America, we offer again discounted licenses for our MBS Plugins for FileMaker and Xojo.
Please use coupon code BlackFriday for our web shop to order new licenses with a 20% discount. This includes DynaPDF and LibXL.

Order MBS FileMaker Plugin     Order MBS Xojo Plugins     Order LibXL

If you have special needs, you can email us to get an invoice or Paypal payment link directly. We know some people need to wait till next week to order, so the offer is valid till Tuesday.

Second if you have purchased previously an individual MBS Xojo Plugin part from the Complete Set within the last two years, but not the whole set, we offer you an upgrade to the Complete set for the update price. Please consider to get the whole collection of over 40 plugins instead of just one plugin.

See also Xojo Thanksgiving Sale, piDog sale, xDev Magazine and xDevLibrary sale.

Black Friday coming soon

As you may know Americans love to shop on Black Friday and Cyber Monday. This year Black Friday is 26th November. About half our customers are in North America, so we are happy to offer you a discount if they buy this weekend. Our offer will go live in the next days and should be available in time.

We plan to offer coupon code BlackFriday for the web shop with 20% off for new licenses of MBS Plugins, DynaPDF and LibXL.
Updates are already offered with discount (usually 50%) compared to new purchases and and our academic prices already have a discount, too. If you like, you can email us to get an order link for all licenses you need or provide an invoice if needed. Especially if you like to use Paypal for payment, we can provide a link with discount or write a custom invoice.

Order MBS FileMaker Plugin     Order MBS Xojo Plugins     Order LibXL

As usual the discounted offer allows you to buy whatever licenses you may need in the next year. Especially if your license expired in 2020 or before, this is a great chance to get up to date!

If you need a license from Xojo Inc. or their third-party store section, you may to check the Xojo store on the weekend. Everyone interested in a license for the current version 2021r3, should go and buy one. With a current license for iOS (Mobile) or Xojo Pro, you can enter Android testing.

You have a question? Please don't hesitate to contact us by email or phone. We may help to point you to the right offer.

If vs If in Xojo

On the Xojo forum was a discussion about the inline If vs the block If syntax in Xojo. Basically whether

result = if( value > 2, 123, 456

is faster or slower than

if value > 2 then result = "123b" else result = "456b" end if

And the answer is of course: it depends. It depends on what is exactly done and how much compiler optimisation eliminates test code. Like if you do a compare in a loop running one million times, the compiler may detect that the result doesn’t change and only run it once. Also if you assign a value to a variable and then compare that, the compiler may know the result and skip the compare.

So let’s deep dive into the assembly.

(more)

xDev Magazine and xDevLibrary Announce Huge Black Friday/CyberMonday Sale 2021

Marc Zeedar announced his offer for the week:

November 2021 – xDev Magazine and xDevLibrary are delighted to announce that through Nov. 29 (CyberMonday) their entire stores are on sale at 20% off!

Just use coupon code CYBERMONDAY to get the discounted price during checkout.

For xDev Magazine, this means 20% off subscriptions, renewals, books, bundles, and more! The only limitation is the minimum order amount must be at least $25 and already-discounted bundles (such as the popular “Welcome to Xojo” bundle) are excluded.

xdevmag.com/orders.shtml

For xDevLibrary, you can save 20% on all digital books, articles, tutorials, and more – everything offered on the store! Just use coupon code CYBERMONDAY to get the discounted price during checkout.

This is a once-a-year sale, but it only lasts through CyberMonday (November 29, 2021). Hurry to take advantage of the great deals!

Also Strawberry Software offers a discount for renewals within the LiveBoat app and for MBS we offer 20% on new licenses with coupon code BlackFriday.

New desktop controls

In MBS Xojo Plugins 21.5 we got 29 new desktop controls to match our existing desktop controls. So whether you use 2021r3 or older, you can always use our controls:

The desktop versions are exactly the same as the normal ones, but with different super class. They derive from DesktopUIControl instead of RectControl.

Check them out!

Especially if you need modern browsing on macOS or Windows, our WebView controls can help. Otherwise enjoy showing map views, camera view, 3D scene or PDF content.


The Last Xojo Black Friday Sale

Xojo Inc. just announced their 10 day BlackFriday sale:

The Last Xojo Black Friday Sale - Save 20% storewide through November 29th

I'd like to add some details:
  1. Due to how the licensing works with Xojo, every licensee can just go and order an update. The expiration date will be adjusted to add the new year on the end, so even if your license is still good until 2022, you can extend and benefit from the discount. This should even work for more than one year.
  2. Third party products are included, so you can order some third party products along your Xojo license.
  3. Buying a XDC ticket gives you a discount coupon to give to a colleague to have them order a ticket, too.
  4. The reason they announced this to be the last sale on Black Friday is simple: Sales staff likes to enjoy family time. So instead of customers calling all day asking for help with placing their order, the sales staff can enjoy Thanksgiving next year. There will still be sales, but in other weeks of the year.
  5. Since Android is now in testing, you could get a license and play with it. Be assured that there is a 90-day money back guarantee, so Xojo Inc. can refund you if you are not happy.

For MBS, we match the offer of course. If you are interested in a new MBS Plugin license, you can get 20% off for our licenses (plus DynaPDF and LibXL). An announcement will follow next week. The coupon code BlackFriday can be used in our web shop. Otherwise email us for custom invoices or Paypal links with the discount.

Xojo 2021r3 release

The new Xojo release showed up and it brings us over 130 bug fixes, 40 changes and and a few new things. While part of the team is hard at work for Android to come in a later release, other engineers had plenty of time working on a lot of little things:

  • We got an update on the WebKit library for Windows, so a few websites may no longer complain about older browser engine.
  • The PDFDocument class learned a few more tricks like transparent colors and form fields.
  • Windows got a kind of dark mode. While Win32 doesn't really support it, Xojo got a lot of custom drawing code in to realize it.
    When the Windows framework gets rewritten with modern UI controls in the next years, it will go native for dark mode. See Roadmap.
  • You can now build MacOS apps on Windows and Linux. This once again makes Xojo a real cross platform tool again for desktop. Still customers will need a Mac to do testing, code signing and notarization.
  • The Crypto module got new functions for Blowfish, Twofish, AES and CRC functions.
    If you needed this before, you had plenty of choices with several plugin and declare libraries. The plugin still may offer more and do it threaded.
  • Some bigger companies may be happy to see iOS Enterprise signing works now.
  • The OSHandle data type for declares sounds handy to avoid conversion between ptr and Integer for handles. But since it's implemented as an extra class, I prefer to do a cast if needed or just change the declare to take integer/ptr instead of using a new class.
  • Running Xojo inside Windows for ARM sounds great. Seems to work fine for my copy of Windows 11 on MacBook Pro within Parallels.
(more)

MonkeyBread Software Releases the MBS Xojo Plugins in version 21.5

Nickenich, Germany - (November 16th, 2021) -- MonkeyBread Software today is pleased to announce MBS Xojo Plugins 21.5 for macOS, Linux and Windows, the latest update to their product that is easily the most powerful plugin collection currently available for Xojo. MBS Xojo Plugins have been updated and now includes over 2900 classes and 73,000 documented features, and the versatile plugins have gained more new functions:

Since Xojo 2021r3 introduces new Desktop controls, we updated our own controls for this change. Whether you use Window or DesktopWindow, in both cases you can enjoy one of our 29 controls. The plugin have been updated to the new plugin SDK and we updated our Chromium classes to the newer version used in Xojo now.

Our XL classes for using LibXL to edit Microsoft Excel documents got updated for the version 4.0 of LibXL. This includes a new XLFormControlMBS class to work with form controls on a sheet.

We improved our support for WebView2 on Windows with a NewWindowRequested event to catch the case when a link should open in a new window. Your application can create a new window and return the reference. The new WebView2WindowFeaturesMBS class provides details for the new window.

For DynaPDF we have a new DynaPDFVersionInfoMBS class to provide details on the PDF version of an import or the working PDF. We improved our ConvertStyledText function for styled text to better handle fonts. The new AddButtonImageEx2 function lets you pass image data directly for a button control on a PDF.

On Windows our plugin uses preemptive threads for MT methods with a thread pool. The pool can now be configured if needed with the WinThreadPoolMBS class. Our NSURLRequestMBS class can now set attribution for macOS Monterey to define whether the software or the user entered an URL. The SQL classes can cache prepared statements for faster performance in tight loops.

Finally we updated CURL library to version 7.79.1, DynaPDF to 4.0.63.161, LibXL to 4.0 and SQLAPI to 5.1.7.

See release notes for a complete list of changes.

Avoid pre-compilation pitfalls

You can have multiple Xojo versions installed. I currently have seven versions here, so I can verify problems with the same version as the client. And some projects are build with a specific version, so if we just fix a small thing, we rebuild with same version to no introduce any side effects with a version switch.

Xojo keeps a cache folder for each version Xojo version, so you may have something like in the picture on the right in your ~/Library/Caches/Xojo folder.

As you see, we just dropped in two plugins for the screenshot, but we did use console, desktop, iOS and web targets in two different versions. Xojo creates object files for the linker to use those plugins in the compilation process. If that works well, you only get a pre-compilation dialog every few weeks, when you may install a new plugin version.

Now if you have more than one copy of the same Xojo version on macOS, they share a cache folder. If one Xojo version belongs to a project with a few plugins and the other version has not the same plugins, the Xojo IDE will notice that the cache doesn't match the plugins folder and rebuild the cache each time you switch.

It is perfectly fine to have one plugins folder per version with different content. But if you switch one version between two plugins folder, then you see pre-compilation every time.


MBS Xojo Plugins, version 21.5pr7

New in this prerelease of the 21.5 plugins:
  • Updated class extension for upcoming Xojo 2021r3. Please report if you miss one.
  • Updated plugin SDK for Xojo 2021r3.
  • Added role property to CKShareParticipantMBS class.
  • Added formatted method for NSPersonNameComponentsMBS class.
Download: monkeybreadsoftware.com/xojo/download/plugin/Prerelease/ or from Dropbox.
Or ask us to be added to our shared Dropbox folder.

Tip of the day: Avoid repeated variant packaging

If you work a lot with variants, you may more often than needed, create or destroy variants on the way, often without noticing. Not every developer knows that assigning something to CellTag() or adding something to dictionary may create a new variant object. If you know the little details, you may notice it.

If you have a dictionary with strings as keys and values, you may have a loop like this:

for each key as string in dic.keys dim value as string = dic.Value(key) System.DebugLog "key: "+value next

What do you don’t see is the implicit conversions happening. For each step of the loop, the key is queried as variant. Since a string is needed, the StringValue function gets called to get the string value of the variant. If this is a variant containing a string, this is just a reference count +1 and returning the string. But if this is a number, it will call a ToString function internally and create a new string here.

(more)

MBS Xojo Plugins, version 21.5pr6

New in this prerelease of the 21.5 plugins:
  • Updated DynaPDF to version 4.0.63.161.
  • Added AddButtonImageEx2 function to DynaPDFMBS class.
  • Changed ConvertStyledText in DynaPDFMBS class to pass fonts as family names.
Download: monkeybreadsoftware.com/xojo/download/plugin/Prerelease/ or from Dropbox.
Or ask us to be added to our shared Dropbox folder.

Several ways for picture to PDF in MBS Plugins

How many ways to we have to come from a picture to a PDF in Xojo with MBS Xojo Plugins?

Let's see how many we find:

GraphicsMagick

We use GMImageMBS class to load the picture and save it to a file.

Sub test1(pic as Picture, file as FolderItem) // load picture into GraphicsMagick Dim g As New GMImageMBS(pic) // have it write to a PDF file g.write(file) End Sub

This should work cross platform all platforms (macOS, iOS, Windows and Linux).

(more)

MBS Xojo Plugins, version 21.5pr5

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

xDev Magazine 19.6

The November/December (19.6) issue of xDev Magazine is now available. Here's a quick preview of what's inside:

Things you can do with DynaPDF by Stefanie Juchmes
You probably know that the DynaPDF plugin is powerful, but perhaps you don't know everything that it can do. Stefanie lists a ton of cool features of the software.

Memorable Passwords by Marc Zeedar
While having a good password manager is essential, there are critical accounts where being able to memorize the password is useful. Marc helps with a tool he wrote in Xojo.

The Tale of Cross-Platform Compilation by Geoff Perlman
Xojo used to let Windows and Linux users compile for the Mac. Then that feature went away. Now it's back. Geoff explains what happened.

Cryptography with the Vigenere Cipher by Eugene Dakin
The Vingenere Cipher uses multiple alphabets to change the distribution, frequency, and average of the letters used in the message, making it hard to crack.

Rotating Christmas Tree by Stefanie Juchmes
Happy holidays! Use SceneKit to create an animated Christmas tree.

Plus: Xojo 2021R2.3, links in PDFs, SQL, GraphicsMagick, recommendation algorithms, working solo, document editing, and much more!

Adventures in emulation

When I started on a Mac around 1996 with a Performa 6200, I was always fascinated of emulation. I did quickly get Real PC, a software to emulate an Intel 286 CPU at that time on System 7.5. Mainly to continue to do some Turbo Pascal work there. But in 1998 I moved to REALbasic (now Xojo).

In March 2002, I made this screenshot showing some emulation within emulation inside an emulated PC:



Why? Because it's an achievement to get it to work!

We have macOS 10.1.3 running on a PowerPC Mac. Then there is macOS Classic layer running to run older macOS applications and one of that is SoftPC Professional. Inside that DOS is running. We also have Virtual PC software for MacOS X running there with a Windows 98 emulation. Then inside that it runs Basilisk II with a macOS System 7.5.3. And inside that one, we run Real PC to emulate another DOS.
  • Virtual PC translates Intel CPU instructions to PPC.
  • Basilisk II translates 68k CPU instructions to Intel.
  • Real PC translates Intel CPU instructions to 68k.
Amazing to get this to work for this screenshot.

Nowadays we still use a lot of emulations or virtualization. A great way to compile code or test applications for other operation systems without carrying a second laptop computer. We virtualize Linux 32 and 64bit variants in VMWare as well as several Windows versions. As the CPU architecture is the same, it is virtualization. Above we have PowerPC apps emulate an Intel CPU to run Intel software. We also virtualize ARM versions of Windows and Linux on a M1 MacBook with Parallels software. And inside the Windows ARM running there, we run Intel based software like FileMaker Pro.

What story do you have to share?

Double Underlined Text in DynaPDF

The DynaPDF version 4.0.62.160 showed up and features the use of the new \dl# tag to double underline text.

Our code for DynaPDF.ConvertStyledText in the MBS FileMaker Plugin got updated and other functions like DynaPDF.WriteStyledText will use this, too. So you can now pass styled text from FileMaker to our plugin and we can convert the styled text and preserve the double underline.
Coming soon with next pre-release.

Thread Pool for Windows

For our MBS Xojo Plugins we add a thread pooling for Windows in version 20.4. Instead of having the plugin create threads if needed for doing work and reuse them if needed.

For version 20.5 we got a new class to control that: WinThreadPoolMBS

We go these four properties:
  • StackCommit as Integer
  • StackReserve as Integer
  • ThreadMaximum as Integer
  • ThreadMinimum as Integer

The default stack size is 1 MB with a grow rate of 4 KB. Thread minimum and maximum is not limited, so Windows can decide based on CPU core count and load.

If you don't use the class, you get the default behavior: a shared thread pool for the whole process. This may also be used by plugins from other vendors.

But if you use this class, we create a thread pool for our MBS Plugin functions and you can configure how much we use it. In case you use this, please initialize this early and keep the object around, e.g. put in a property of app or a module.

Please try the current pre-release version of the plugin to see how it works for you.

Saying goodbye to AddressBook framework

For many years we used AddressBook framework to interact with the built-in AddressBook application on macOS. Since about macOS 10.2 from 2002 those classes have been in the operation system. Since OS X El Capitan 10.11 from 2015 we got the Contacts framework to replace the older AddressBook classes and provide access to the same database for contacts on your application. Somewhere in-between macOS release, the applications for end users got rewritten and renamed to Contacts.app.

The AddressBook plugin is deprecated for a few years and it looks like finally Apple put it on the no-go list for the App Store. At least we got such a notice for the ABPersonView control in one fo the applications of a client. This is one of the controls we provide for address book access.

We already marked AddressBook functions as deprecated, but it may be finally time for you to look through your code and remove all references to AB* classes:

class ABAccountMBS
class ABAddressBookMBS
class ABGroupMBS
class ABMultiValueMBS
class ABMutableMultiValueMBS
class ABPersonMBS
class ABPickerMBS
class ABRecordMBS
class ABSearchElementMBS
class ABPeoplePickerViewMBS
class ABPersonViewMBS
control ABPeoplePickerViewControlMBS
control ABPersonViewControlMBS

Let us know if you have questions on the transition to Contacts framework or if something is missing in our plugins.

For MBS Xojo Plugins we plan to remove AddressBook completely in a cleanup in winter, so 2022 versions may no longer have it. Because if Apple starts to flag those classes as no longer being eligible for App Store submission, it's time to say goodbye.

MBS Xojo Plugins, version 21.5pr4

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

Older blog entries:

2021-10-25 MBS Xojo Plugins, version 21.5pr3
2021-10-19 Styled Text for Labels in your Xojo iOS app
2021-10-11 MBS Xojo Plugins, version 21.5pr2
2021-10-09 DynaPDF with gradients in DeviceN colorspace
2021-10-07 Use text fields for numbers
2021-10-03 The order of events in Xojo
2021-10-01 MBS Xojo Plugins, version 21.5pr1
2021-09-29 Updates for Updater, WebStarter and Bugreporter Kits
2021-09-27 Six months till XDC 2022 in London
2021-09-16 News from the MBS Xojo Plugins Version 21.4
2021-09-13 Video about DynaPDF and Xojo
2021-09-11 Teamviewer installation for remote support
2021-09-10 Last day for OmegaBundle
2021-09-07 MonkeyBread Software Releases the MBS Xojo Plugins in version 21.4
2021-09-05 Optimizing a Xojo function
2021-09-04 Omegabundle for Xojo 2021 Developer Tools
2021-09-03 MBS Xojo Plugins, version 21.4pr5
2021-09-01 xDev Magazine 19.5
2021-09-01 14 years of MBS Xojo DynaPDF Plugin
2021-08-31 Xojo Roadmap updated

Archives

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