Re: NSString from NSConcreteAttributedString
Re: NSString from NSConcreteAttributedString
- Subject: Re: NSString from NSConcreteAttributedString
- From: Douglas Davidson <email@hidden>
- Date: Mon, 11 Jun 2007 08:51:45 -0700
On Jun 9, 2007, at 8:54 PM, Matthew Delves wrote:
Just a simple question that I hope has a simple answer.
How can I get an instance of an NSString from an instance of an
NSConcreteAttributedString class?
I'm getting the NSConcreteAttributedString from bindings related to
an NSTextView, though what I'm after is an NSString.
It sounds like you're getting an instance of a private subclass of
NSAttributedString. To get the underlying string, use the method -
[NSAttributedString string].
For those who are going to be at WWDC, I'll be discussing the various
attributed string classes (among other things) at Wednesday's Cocoa
text talk.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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