• 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
Re: string to html.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string to html.


  • Subject: Re: string to html.
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 16 May 2008 09:37:13 -0700


On 16 May '08, at 3:42 AM, email@hidden wrote:

NSAttributedString* textValue = [[NSAttributedString alloc]
initWithString: [self messageField]];//where messageField returns string.

That's going to produce an attributed string with no text styles at all, because all you gave it was a plain NSString. So I would expect that the HTML returned would look mostly like the original text (unless it includes "<" or "&".)


Were you intending to use styled text?

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >string to html. (From: email@hidden)

  • Prev by Date: Re: Problem with NSFileManger directoryContentsAtPath
  • Next by Date: Re: Problem with NSFileManger directoryContentsAtPath
  • Previous by thread: string to html.
  • Next by thread: Set view in bottom right corner of NSTableView
  • Index(es):
    • Date
    • Thread