You can call into Cocoa Touch APIs to use methods and properties that are not built into the framework by using the Declare command. To create a Declare statement you first need to track down the API you want to use in Apple’s documentation: Apple Developer Documentation. Most of the time you will reference the Foundation and UIKit libraries, but there are many other libraries as well. Xojo Declares use the Objective-C names so be sure to refer to those in the documentation rather than the Swift naming.
Tag: Beginner Tips
At Xojo we’re a company of programmers who work with programmers and after 21 years or so, we like to think we know our stuff. In honor of International Programmer’s Day today, we’d like to offer our experience in the form of a listicle. 😉
Whether you’re new to programming or an experienced developer, there are some things you’ll just never find in a reference manual. We’re passionate about writing good code and these are our 10 tips to be a better programmer.
The ability to code is an increasingly valuable skill. At Xojo we believe that anybody can learn to make their own apps. And Xojo is a great language for students looking to add programming to their skillset and for citizen developers.
Learn to code using Xojo and you can build apps for Mac, Windows and Linux, web apps, iOS apps and Raspberry Pi apps (and Android- it’s coming!). With the exception of iOS which requires a Mac, you can build for any platform we support from any platform we support. Want to build Windows apps for your friends from your Mac? That’s what Xojo is great at! Want to make your work day easier with a database app to track your inventory? Xojo’s great at that too!
In 1998 Steve Jobs was the interim CEO of Apple and trying to keep his unprofitable company from sinking into bankruptcy. Just the previous year, when asked what he would do if he were in charge of Apple, Dell CEO Michael Dell said, “I’d shut it down and give the money back to the shareholders.”
The Mac had single digit marketshare. Creating a development tool, independently of Apple or any company that makes a platform such a tool would support, was considered a fool’s errand. There were plenty of tools available from large companies. Apple made MPW (the Macintosh Programmer’s Workshop). Symantec created THINK C. Metrowerks developed CodeWarrior. IBM’s VisualAge. Macromedia Flash. If you needed to create a cross-platform desktop app, you’d be told to look no further than SUN Microsystems Java: THE cross-platform language. We were all promised that Java was going to run on everything from our computers to our cars to our can openers. Java was the safe and popular choice. Developers made up only about 5% of computer users anyway. Honestly, who would be crazy enough to launch a new development tool in a market crowded by giants?
Using the Remote Debugger means that you can run Xojo apps on the Pi for testing and development without have to first purchase a Xojo license.
Here are the questions people asked during our February “What is Xojo” webinar. Did you miss the webinar? It’s less than 30 minutes and you can watch it right here:
It’s 2017, do you recall when your most indispensable app was last updated?
IDE Scripts to the rescue! With a simple script (less than 10 lines), whenever you have quoted text to paste into the IDE, just select your script from the File > IDE Scripts menu instead.