Skip to content

Category: Technology

Tip: Automatic Reference Counting

As defined on Wikipedia, Automatic Reference Counting (or ARC) is a “memory management enhancement where the burden of keeping track of an object’s reference count is lifted from the programmer to the compiler.”

With object-oriented programming, each new object you create takes up space in memory. This memory needs to be managed somehow. In the beginning, this management of memory was left entirely to the programmer, such as with C++ or originally with Objective-C.

Comments closed

Write a Slackbot in Less Than 20 Lines of Code

What is Slackbot?

Slack has an API called “slash commands” that lets a user type a slash (/) followed by a command name in order to perform a special action. For example, Slack has many built-in slash commands, one example is /help. Here’s how you can easily add your own slash commands using a Xojo web app and the HandleSpecialURL (or HandleURL) method.

Your slash command makes an HTTP request to your Xojo web service app. The web services does its thing and then returns the result back to Slack to display.

Comments closed

Generating Xojo Code From Paw

At Xojo, we work with a lot of HTTP REST APIs. So many in fact that I’ve spent time creating custom test harnesses to make sure that whatever I was currently coding would be compatible as well as being a test suite just in case the API changed in some subtle way (whether it be a bug fix or an API refactor gone awry). The problem with the custom test harnesses is that they’re not very portable and you end up having to create a new one for each API that you interface with.

Comments closed

Hour of Code: Cat Pictures

It’s time again for Hour of Code! The Hour of Code is a global movement reaching tens of millions of students in 180+ countries. Anyone, anywhere can participate in Hour of Code, from ages 4 to 104. At Xojo, we are again participating in this wonderful way to help people learn to program.

Comments closed

Deploy iOS apps to your devices without an Apple Developer Membership

With the release of Xcode 7, Apple combined the iOS and Mac Developer programs into a single Developer Program. Previously these programs were $99/year for each and now they are $99/year for the combined Apple Developer Program which lets you create and deploy apps for iOS and OS X.

Comments closed

Guest Post: Using Gitflow for Team Development

Guest Post by Kem Tekinay, a consultant and developer based in New York. Kem has been an avid Xojo user since the early days and is a world-renowned thinker and philosopher, at least its his own mind. You can find him and his works through the MacTechnologies Consulting web site.

After months of work, your project is so fabulous that you need more developers. You’ve been using Git as your version control system and creating/merging branches to keep it all straight, but so far it’s just been for personal use. How do you coordinate with others to maintain some semblance of order?

Try the Gitflow Workflow.

Comments closed