Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 15.5 ('Touch Bar')
Instant purchase and download via GumRoad!


Improve WeakRef Performance

Cache WeakRefs to gain speed

Issue: 15.5 (September/October 2017)
Author: Thomas Tempelmann
Author Bio: Thomas is a long-time Xojo developer. This article is an updated version of a post that originally appeared on his website (http://blog.tempel.org).
Article Description: No description available.
Article Length (in bytes): 8,937
Starting Page Number: 13
Article Number: 15503
Related Web Link(s):


Excerpt of article text...

A common programming technique to organize data is the use of tree structures, which are built as linked lists. Trees are great for hierarchical data, such as files and folders. (See the What's a Linked List? sidebar for more info.)

But the traditional structure of building trees with leaves (children) that keep a reference to the branch (ancestor, parent) they're attached to, can cause some serious problems. The simplest—but not smartest—solution is to store a direct reference to the parent object in the child object.

Imagine this node class:

class Person

property name as String

...End of Excerpt. Please purchase the magazine to read the full article.