Under the Hood
- PDF for offline use
Let us know how you feel about this
last updated: 2017-11
A peek at the inner workings of Xamarin.Mac
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.
Xamarin.Mac's relationship to Objective-C, including concepts such as compilation, selectors, registrars, app launch, and the generator.
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.