ios-samples
ios-samples copied to clipboard
BindingSample is incomplete
The binding capabilities of Xamarin/MonoTouch are a key feature for developers using third-party iOS SDKs, typically written in Obj-C. Very little Obj-C code is presented in the official docs to correspond to the C# example code, which presents problems for developers using Xamarin who have not previously worked in Obj-C.
It would be great if the monotouch-samples/BindingSample project were more of a complete demonstration of binding to all kinds of Obj-C constructs, as outlined in the official docs, with corresponding Obj-C code for the C# binding examples (perhaps have the Obj-C definitions in comments before the C# code that binds to them, for comparison).
I agree with this. The first time a worked with Xamarin I did try to use a Obj-C component BUT the tools that Xamarin provided in that time just did not work and I ended up building the entire component in C#. Lots of time and work wasted if the component already exists.
- In the XCode project the XMBindingLibrarySampleUniversal-Prefix.pch is missing and the path for XMBindingLibrarySample-Prefix.pch is incorrect.
- There is no "iOS Binding Project"
- Creating a new iOS Binding Project and replacing the contents of ApiDefinitions.cs with XMBindingLibrarySample.cs and the contents of StructsAndEnums.cs with extras.cs gives compilation errors
- The Binding Project should be named XMBindingLibrarySample
[Export("multiply:and")]should be[Export("multiply:and:")](missing colon)- Exhibits behaviour like bug 14873 when it works