How to get the exact location and range for an Attachment present in NSTextView
How to get the exact location and range for an Attachment present in NSTextView
- Subject: How to get the exact location and range for an Attachment present in NSTextView
- From: Sandeep Mohan Bhandarkar <email@hidden>
- Date: Mon, 19 Sep 2011 12:23:38 -0700
Hi All,
Can anyone tell me if it is possible to get the exact range and location of an attachment present in a NSTextView. Here is what i am looking for
1) Attach images, Documents inline in a NSTextView using NSAttributedString.
2) Get the exact location for the Attachment in the entire text view string.
Part 1 is working for me. but I need some help on how point 2 can be done got the following methods online
[[NSTextView attributedString] containsAttachment]
but this will only tell me if there is an attachment present. I need to know where the attachment is present in the entire text of the NSTextView.
Thanks in Advance ,
Sandeep.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden