Exploiting Advanced OS-Specific Functionality

Is it possible to take advantage of lower level OS features for a given platform? For instance, can Core Animation be used on Mac OS X? Let’s say I’d like to make something appear or disappear with a “genie” effect. Can this be done? If so, can someone point me to some sample code or documentation?

I don’t need details about that specific effect; rather, I’m wondering how to approach interfacing with the OS at a “lower level” using Xojo (if it can be done at all).

Thanks much,


You can use the Declare statement to use OS-specific API functions in your applications. I don’t know anything about Mac OS’ Core Animation system, but if it exposes callable foreign functions then Xojo can use them.

Thanks, Andrew, that’s encouraging! I’ll look into it.


Search for “macoslib” or try the Monkeybread plugins.

Xojo includes several examples in the Platform-Specific folder you might also want to check out.

Also look at: