Bug 18334 - Missing binding for NSAttributedString attributedStringWithAttachment:
Summary: Missing binding for NSAttributedString attributedStringWithAttachment:
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: master
Hardware: Macintosh Mac OS
: Normal enhancement
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-03-13 01:12 UTC by Nick Rymanov
Modified: 2016-04-15 21:19 UTC (History)
4 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 Nick Rymanov 2014-03-13 01:12:32 UTC
It would be nice to have a binding for NSAttributedString attributedStringWithAttachment:

See Apple documentation for details
Comment 1 Sadik Ali 2014-03-13 01:53:04 UTC
I checked this issue on below environments:

XS 4.2.3 (build 60)
X iOS: (Business Edition)

I noticed that NSAttributedString class has missing binding of AttributedStringWithAttachment method
Screen cast: http://screencast.com/t/GR20NhQyzwxt
Comment 2 Eric Fikus 2014-05-09 19:19:08 UTC
The selector seems to have been bound as an extension method:

public static NSAttributedString FromTextAttachment(this NSAttributedString This, NSTextAttachment attachment)

(the class that defines this is NSAttributedStringAttachmentConveniences.)

I think this should be fixed so it doesn't require another NSAttributedString as input.
Comment 3 Sebastien Pouliot 2016-04-15 21:19:30 UTC
NSAttributedString.CreateFrom(NSTextAttachment) was added to cover this case.

In newer XI 9.8 (including tvOS) support you can also use 
> NSAttributedString.FromAttachment(NSTextAttachment)

Fixed in maccore/master 555798e02e5ced860da2ee0332ab63efaa7ba8a0