Want a quick and easy way to add capabilities to bulit-in classes and types without subclassing? Try extension methods.
sort code tips and tricks
Sometimes you need a property that does more than simply store a value. It may also need to calculate a value or perform some other action to lookup a value. You can do this using a Computed Property or an Assignment Method. Read on to learn how these work and when to use them.
Xojo web apps work very similarly to desktop apps. In fact, they are so much like desktop apps that you may want to make them their own “app”. There are a couple ways you can do this.
You may have seen text that has strange diamond characters in it. If so, you likely have an encoding problem.
Dumb Ways to Code
By Geoff Perlman
Sung to the tune of “Dumb Ways to Die” by Tangerine Kitty
Use an object that's out of scope
Don't escape your SQL quotes
Ship without a beta test
Think Google Translate to localize is best
Nearly all CPUs used by your devices, from computers to tablets to phones, now contain multiple CPU cores. With a multi-core CPU, your computer can literally do multiple things at one time, which is called multiprocessing. And with a little careful planning, your Xojo apps can use multiprocessing for significant performance improvements in your apps.
Managers, Coordinators, Purchasing Agents, Xojo has got you covered! Did you know you can assign Xojo licenses from your account to other accounts? Assigning a license to a member of your team gives them access to that Xojo license, while you retain the ability to revoke and extend those licenses.
This blog post steps through a license owner assigning their Xojo license to an end user.
TL;DR Go to go your Team pages. End users share their connection key with the license owner, then owner connects with end user’s account by adding that connection key. Now, the owner can assign licenses to anyone they are connected with from their Licenses Page.
Perhaps you already knew, but with desktop apps it has always been considered bad form to directly access any part of your user interface from within a Thread. Alas, even though this was frowned upon, it generally worked in most of your desktop apps.
Starting with 2013r1, this no longer works with Xojo for Cocoa apps. If a Cocoa app tries to access the UI from a thread, a ThreadAccessingUIException is raised. But what exactly does “accessing the UI” mean? In the case of Cocoa, it means any access to a built-in property or method on any UI control or Window. You can access your own methods or properties added to control subclasses as long as they do not access the UI themselves.
If you have been around the Mac community long enough, you may have ended up with two Apple IDs. I have one for iTunes and another one that came from MobileMe. This resulted in effectively having two iCloud accounts. This can be inconvenient and probably will become more so in the future. Apple doesn’t provide a means to merge Apple IDs. They know they need to provide this, but they do not yet do so. I, however, have found a way.
Since the introduction of iCloud, I have wanted to have a single Apple ID. When Apple recently added the two-step authentication for Apple IDs to make them more secure, I decided to sign in and update my Apple ID account. Part of the process is to verify a device you own which will be used, along with your password, to authenticate that you are who you say you are should you want to make changes (such as your password) to your Apple ID in the future. The webpage said it would list my devices, but none were listed. It didn’t take long to figure out why. The Apple ID I was updating was for iTunes, while the Apple ID Apple was using to find my devices was the one associated with my iCloud (MobileMe/mac.com) account.
Xojo is a great alternative to Microsoft Visual Basic. If you have used VB in the past or are considering using it now, you might want to take a look at Xojo to see if it will fit your needs better.
At Xojo, we strive to keep things simple. A single language to build apps for Mac, Windows and Linux desktop, plus web, iOS and Raspberry Pi (Android coming soon!). With Xojo you simply develop faster.