Bug 29546 - Class NSDataDetector does not exist
Summary: Class NSDataDetector does not exist
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: master
Hardware: All Mac OS
: Normal enhancement
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-29 13:27 UTC by Gabriel Bastos
Modified: 2015-05-18 22:53 UTC (History)
4 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 Gabriel Bastos 2015-04-29 13:27:17 UTC
I was trying to implement this: (http://stackoverflow.com/questions/19927935/ios-7-uitextview-link-detection-crash-in-uitableview) in my Xamarin project, but not finding the class NSDataDetector at all.

Shouldn't it be included?

Thanks in regards,
Comment 1 Prashant manu 2015-04-30 02:55:38 UTC
We have checked in assembly browser and not seeing NSDataDetector class. We are not sure its a bug so leaving as new for now. 

Environment Info:
Xamarin Studio
Version 5.9 (build 439)
Installation UUID: 0b7eaebc-a0ed-4b58-81df-91e378cad28c
Runtime:
	Mono 4.0.1 ((detached/373d684)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400000009

Apple Developer Tools
Xcode 6.2 (6758)
Build 6C107a

Xamarin.Mac
Version: 1.12.0.14 (Enterprise Edition)

Xamarin.Android
Version: 5.1.0.122 (Enterprise Edition)
Android SDK: /Users/Admin_Mac/Desktop/Anddk/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

Xamarin Android Player
Version: Unknown version
Location: /Applications/Xamarin Android Player.app

Xamarin.iOS
Version: 8.9.1.3 (Enterprise Edition)
Hash: f7736a4
Branch: 
Build date: 2015-04-09 04:22:08-0400

Build Information
Release ID: 509000439
Git revision: cec8c06f27b7ed21b432be86f92ad1ff45a7a7b7
Build date: 2015-04-29 11:56:17-04
Xamarin addins: df9b5918c9f7aca6da509fe3e5a62553aa101910

Operating System
Mac OS X 10.10.2
Darwin Admin-Macs-Mac-mini.local 14.1.0 Darwin Kernel Version 14.1.0
    Thu Nov 13 18:36:56 PST 2014
    root:xnu-2782.10.65~2/RELEASE_X86_64 x86_64
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-04-30 04:12:52 UTC
NSDataDetector is a subclass of NSRegularExpression, which we've not bound because there's an equivalent managed alternative.

For link detection in C# you have a few good alternatives here: http://stackoverflow.com/questions/1323283/how-to-match-url-in-c
Comment 3 Miguel de Icaza [MSFT] 2015-05-18 22:53:54 UTC
Implemented on the next release (for the sake of NSDataDetector).