Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

BindingSample is incomplete #39

Closed
macu opened this issue Jul 23, 2014 · 3 comments
Closed

BindingSample is incomplete #39

macu opened this issue Jul 23, 2014 · 3 comments
Milestone

Comments

@macu
Copy link

macu commented Jul 23, 2014

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).

@Rafailong
Copy link

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.

@KotiJocki
Copy link

  • 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

@rolfbjarne rolfbjarne added this to the Future milestone Apr 12, 2019
@rolfbjarne
Copy link
Member

Microsoft support for Xamarin will end on May 1, 2024 for all Xamarin SDKs. In preparation for this, all issues and PRs in this repository are being closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants