Re: Extract plain text content from a Text View
Re: Extract plain text content from a Text View
- Subject: Re: Extract plain text content from a Text View
- From: Jens Alfke <email@hidden>
- Date: Fri, 16 Oct 2009 12:43:39 -0700
On Oct 16, 2009, at 12:37 PM, Ian Piper wrote:
Is there a way to get the plain text content out of an NSTextStorage
object (displaying using a Text View) that contains rich text and
images? I want to figure out a way to build a search predicate that
will allow me to search a Text View and I think this is likely to be
the only way.
NSTextStorage is a subclass of NSAttributedString, which has a -string
property. This is easy to overlook :)
—Jens_______________________________________________
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