• 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
-[NSAttributedString initWithData:...] compresses spaces?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSAttributedString initWithData:...] compresses spaces?


  • Subject: -[NSAttributedString initWithData:...] compresses spaces?
  • From: Glen Simmons <email@hidden>
  • Date: Thu, 27 Apr 2006 17:12:47 -0500

I'm using -[NSAttributedString initWithData:options:documentAttributes:error:] with some XHTML that looks like this:
<html xmlns="http://www.w3.org/1999/xhtml";>
<p>
<font face="Lucida Grande" size="5">a</font>
<font face="Garamond" size="5"> </font>
<font face="Lucida Grande" size="5">a</font>
</p>
</html>


The problem is that the NSAttributedString I end up with only has one space between the two a's instead of the 4 that it should. How can I get it to preserve the spaces?

Thanks,
Glen Simmons
_______________________________________________
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:
    • How to access the value that a pointer is pointing to
      • From: Phil Faber <email@hidden>
    • Re: -[NSAttributedString initWithData:...] compresses spaces?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re-wrapping cells in an NSMatrix with bindings
  • Next by Date: Re: Selector of Open recent document
  • Previous by thread: Re: Re-wrapping cells in an NSMatrix with bindings
  • Next by thread: Re: -[NSAttributedString initWithData:...] compresses spaces?
  • Index(es):
    • Date
    • Thread