Binding Mac Libraries
Let us know how you feel about this
last updated: 2017-01
Binding Projects for Xamarin.Mac are currently in preview for Xamarin Studio on macOS (formerly known as OS X). Visit the forums to download the preview.
Follow these links to learn about binding Objective-C libraries for Xamarin.iOS and Xamarin.Mac:
- Overview - Describes how binding works.
- Binding Objective-C Libraries - Instructions on how to bind Objective-C libraries for use in Xamarin projects.
- Type Definition Reference Guide - Describes all of the attributes available to binding authors to drive the binding generation process.
Objective Sharpie is a command line tool to help bootstrap the first pass of a binding. It works by parsing the header files of a native library to map the public API into the binding definition (a process that is otherwise done manually). Objective Sharpie does not create a binding by itself, but it can help get you started!
Refer to the XMBindingExample Mac sample to learn how to manually create a Mac binding.