Under the hood

PDF for offline use

Let us know how you feel about this

Translation Quality


last updated: 2017-11

A peek at the inner workings of Xamarin.Mac

Ahead of time compilation (AOT)

Ahead of time (AOT) compilation is a powerful optimization technique for improving startup performance. However, it also affects your build time, application size, and program execution in profound ways, so it's worthwhile understanding how it works.

Mac architecture

Xamarin.Mac's relationship to Objective-C, including concepts such as compilation, selectors, registrars, app launch, and the generator.

Xamarin.Mac registrar

Xamarin.Mac bridges the gap between the managed world and Cocoa's runtime, allowing managed classes to call unmanaged Objective-C classes and be called back when events occur. The work required to preform this “magic” is handled by the registrar, but understanding what's going on "under the hood" can sometimes be helpful.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.