• 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: CSS style string to NSAttributedString attributes conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CSS style string to NSAttributedString attributes conversion


  • Subject: Re: CSS style string to NSAttributedString attributes conversion
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 8 Apr 2010 09:19:53 -0700


On Apr 8, 2010, at 2:53 AM, email@hidden wrote:

I want to convert CSS style strings to NSAttributedString attributes.
AppKit and WebKit don't seem to offer a solution.
Does anyone know of any permissive licence third part code?


I'm not aware of anything that does this.
Are you talking about parsing entire CSS files, or just a single "property: value;" rule?
Even the simple case isn't that simple; CSS can be pretty complex. And most of the attributes don't map cleanly into AppKit text attributes.


—Jens_______________________________________________

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


  • Follow-Ups:
    • Re: CSS style string to NSAttributedString attributes conversion
      • From: "email@hidden" <email@hidden>
References: 
 >CSS style string to NSAttributedString attributes conversion (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: How to change to the smoother single-stage animation
  • Next by Date: Re: Query on File Wrapping
  • Previous by thread: CSS style string to NSAttributedString attributes conversion
  • Next by thread: Re: CSS style string to NSAttributedString attributes conversion
  • Index(es):
    • Date
    • Thread