is this string styled?
is this string styled?
- Subject: is this string styled?
- From: Matt Neuburg <email@hidden>
- Date: Sat, 07 Jan 2006 06:57:33 -0800
- Thread-topic: is this string styled?
I have an NSTextView. To save storage space, if what's in the text view is
effectively unstyled, I'd like to save just the NSString version of it, not
the whole NSAttributedString. Is there a simple way to ask the
NSAttributedString: "Are your attributes the same as what I'd get if I took
your string, made an NSAttributedString from it using initWithString, and
stuck it in that NSTextView?" (The reason I'm having trouble with this is
that the attributes of an attributed string made with initWithString form an
empty dictionary, but the attributes of that same attributed string when it
has passed thru the text view are no longer empty.) m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden