Bug 16072 - ABPeoplePickerNavigationControllerDelegate.ShouldContinue exposes an IntPtr instead of an ABRecord
Summary: ABPeoplePickerNavigationControllerDelegate.ShouldContinue exposes an IntPtr i...
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 7.0.4.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Miguel de Icaza [MSFT]
Depends on:
Reported: 2013-11-08 21:58 UTC by Todd Berman
Modified: 2014-11-27 10:45 UTC (History)
5 users (show)

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:

Description Todd Berman 2013-11-08 21:58:30 UTC
Summary pretty much says it all.
Comment 1 Sebastien Pouliot 2013-11-09 10:51:08 UTC
That's unfortunate :( and hard to fix (in delegates) without introducing a breaking change. The workaround is to create the managed ABRecord instance manually, e.g.

	ABRecord rec = Runtime.GetINativeObject<ABRecord> (selectedPerson, false);

and then the ABPerson instance from the ABRecord (normal step):

	ABPerson person = new ABPerson (rec);

However the same workaround should be usable to remove the ABRecord->ABPerson conversion, e.g.:

	ABPerson person = Runtime.GetINativeObject<ABPerson> (selectedPerson, false);
Comment 2 Sebastien Pouliot 2014-10-27 10:48:12 UTC
Fixed in master / d78c07e60275509488ddf7b34e0e8a48d43c51d1 for unified API (only)
Comment 3 Ram Chandra 2014-11-27 10:45:43 UTC
I have checked this issue with following builds:

Mac OS X 10.10.0
Xamarin Studio: 5.7 (build 596)
Mono 3.12.0 ((detached/b75fa2b)
GTK+ 2.24.23 (Raleigh theme)
Package version: 312000046
Xcode 6.1 (6604)
Xamarin.iOS : (Trial Edition)
=== Build Information ===
Release ID: 507000596
Git revision: d996e9ba6874a0d64241e43e5e6b06322ce29c84
Build date: 2014-11-25 17:17:54-05
Xamarin addins: 8ca19707b41536a391f53364ee4ff9272711feb0

I have checked the definition of "ShouldContinue" method of "ABPeoplePickerNavigationControllerDelegate" class in assembly browser and observed that now "ShouldContinue" method exposes "ABPerson" class which is inherit the ABRecord.

I have checked this issue for unified API.

Screencast: http://www.screencast.com/t/R2JUrYsuE

This issue has been fixed. Hence I am closing this issue.