• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
is this string styled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: is this string styled?
      • From: Kevin Ballard <email@hidden>
    • Re: is this string styled?
      • From: Camillo Lugaresi <email@hidden>
  • Prev by Date: Re: Core Data: Unable to store a NSData object into an entity's binary property.
  • Next by Date: Re: is this string styled?
  • Previous by thread: Re: Core Data: Unable to store a NSData object into an entity's binary property.
  • Next by thread: Re: is this string styled?
  • Index(es):
    • Date
    • Thread