Cross Platform
Android
iOS
Mac
Test Cloud

Binding Objective-C

This section includes a variety of documents that cover creating bindings to Objective-C libraries, so they can be called from C# applications created with Xamarin.iOS.

Binding Objective-C Libraries

This document describes the process used to create C# bindings of Objective-C APIs and how the idioms in Objective-C are mapped to the idioms used in .NET.

If you are binding just C APIs, you should use the standard .NET mechanism for this, the P/Invoke framework.

Automated Binding Definitions using Objective Sharpie

Once you have mastered the design principle of a binding, you can use the Objective Sharpie to help bootstrap the first pass of a binding.

Objective Sharpie works by parsing the header files of a native library to map the public API into the binding definition. This does all the heavy lifting for you and even does some idiom conversion. You then audit the results to ensure that you have a pleasant API to use.

Binding Definition Reference Guide

This is the reference guide that describes all of the attributes available to binding authors to drive the binding generation process.

Binding Details

This document contains some of the internals of how a binding takes place. It is an advanced document with some technical information.