Bug 3526 - BTouch Protocols that Conform to Other Protocols
Summary: BTouch Protocols that Conform to Other Protocols
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-02-17 17:41 UTC by ajb
Modified: 2013-09-27 12:09 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description ajb 2012-02-17 17:41:22 UTC
Having trouble binding objective-C protocols that conform to protocols that are contained within the iOS SDKs.

See here:

http://stackoverflow.com/questions/9323531/binding-protocols-that-conform-to-other-protocols

Miguel suggested inlining the methods and marking with [New]: 

https://gist.github.com/1855900

Which results in: 

/Developer/MonoTouch/usr/bin/btouch  kal.cs AssemblyInfo.cs Enums.cs --out=Kal.dll --link-with=libKalUniversal.a,libKalUniversal.a -x=extras.cs
/var/folders/9c/91k59k7j5rd9nxx874q6d3pm0000gn/T/9la0yelx.qj7/Kal/KalDataSource.g.cs(100,40): error CS0533: `Kal.KalDataSource.RowsInSection(MonoTouch.UIKit.UITableView, int)' hides inherited abstract member `MonoTouch.UIKit.UITableViewDataSource.RowsInSection(MonoTouch.UIKit.UITableView, int)'
/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll (Location of the symbol related to previous error)
/var/folders/9c/91k59k7j5rd9nxx874q6d3pm0000gn/T/9la0yelx.qj7/Kal/KalDataSource.g.cs(106,68): error CS0533: `Kal.KalDataSource.GetCell(MonoTouch.UIKit.UITableView, MonoTouch.Foundation.NSIndexPath)' hides inherited abstract member `MonoTouch.UIKit.UITableViewDataSource.GetCell(MonoTouch.UIKit.UITableView, MonoTouch.Foundation.NSIndexPath)'
Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-09-27 12:09:35 UTC
Our binding support for protocols has significantly improved in Xamarin.iOS 7.0.

Marking as fixed.