Re: How to get the exact location and range for an Attachment present in NSTextView

2011-09-19 Thread Graham Cox
I haven't tried, but off the top of my head it looks like a candidate for using: [NSAttributedString enumerateAttribute:inRange:options:usingBlock:] with NSAttachmentAttributeName as the attribute. --Graham On 20/09/2011, at 5:23 AM, Sandeep Mohan Bhandarkar wrote: > Hi All, > > Can anyone

How to get the exact location and range for an Attachment present in NSTextView

2011-09-19 Thread Sandeep Mohan Bhandarkar
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 vi