Bug 16499 - NSNetService deprecated methods
Summary: NSNetService deprecated methods
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 7.0.4.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-11-28 12:42 UTC by Vincent Bellet
Modified: 2013-12-19 10:14 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 Vincent Bellet 2013-11-28 12:42:13 UTC
hey,

The compilo or XS do not notify me that a bunch of NSNetService methods are now deprecated.

Based on iOS 7 documentation :

https://developer.apple.com/library/ios/documentation/cocoa/reference/foundation/Classes/NSNetService_Class/Reference/Reference.html

all those methods are deprecated :

– addresses Available in iOS 2.0 through iOS 6.1
– delegate Available in iOS 2.0 through iOS 6.1
– domain Available in iOS 2.0 through iOS 6.1
– hostName Available in iOS 2.0 through iOS 6.1
– name Available in iOS 2.0 through iOS 6.1
– setDelegate: Available in iOS 2.0 through iOS 6.1
– type Available in iOS 2.0 through iOS 6.1
– port Available in iOS 2.0 through iOS 6.1
Comment 1 Sebastien Pouliot 2013-11-29 15:10:52 UTC
Fixed in master 4b954666570cca0b4a7105f46444d48588cb1809
Comment 2 PJ 2013-12-11 18:45:43 UTC
This fix is planned to be released with Xamarin.iOS 7.0.6, which should hit the beta channel before December 23rd.
Comment 3 Sadik Ali 2013-12-19 09:33:58 UTC
I have verified this issue and found that some methods are not marked with deprecated as delegate


Refer Screen shot: http://screencast.com/t/MMLApPDn2L 

Checked With:
All Mac
XS 4.2.3 (build 23)
X.iOS 7.0.6.166
Comment 4 Sebastien Pouliot 2013-12-19 10:14:13 UTC
The [Export("delegate")] is marked as [Obsolete] but that's mapped to `WeakDelegate`.

I added another one for the `Delegate` property (which wraps WeakDelegate). That will be part of a future release.

Fixed in maccore 05ec86078911c4ae2f85e24b966973323fb929ae