NSHost should be public on iOS

Originator:freerunnering
Number:rdar://19090940 Date Originated:27-Nov-2014 07:30 PM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS <= 8.1
Classification:Enhancement Reproducible:Always
 
Summary:
NSHost is on iOS, but is private API and so unusable by AppStore apps.

The same functionality can be achieved, but less conveniently by using CFHostRef (which is public).

NSHost's availability marks it as "Available in OS X v10.0 and later." indicating it is a very stable API which has been in the last 10 versions of OS X.

Forcing iOS developers to use the C API doesn't block access to private functionality it simply introduces differences between the platforms that negatively effect developers.

Steps to Reproduce:
Try to use NSHost in an iOS app.

Expected Results:
It works just like on OS X.

Actual Results:
It works just like on OS X.
Except the compiler complains it is not available (even though it is). Because of the lack of it being marked as a public API it is unavailable for use by iOS apps.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!