• 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
Overriding HTML translation in NSAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overriding HTML translation in NSAttributedString


  • Subject: Overriding HTML translation in NSAttributedString
  • From: Glen Simmons <email@hidden>
  • Date: Fri, 11 Nov 2005 16:01:36 -0600

I'm using NSAttributedString to get some XHTML into an NSTextView. It's working well, but I need to tweak one thing. The XHTML has some tags like this:
<img src="foo://bar.png" ...
The "foo:" scheme tells me that the image is actually part of my internal data, not a file on disk. I'd like to step in at the point when NSAttributedString is translating this into an NSTextAttachment and supply the image, rather than getting the little blue square with question mark. Is there a good way to do this?


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:
    • Re: Overriding HTML translation in NSAttributedString
      • From: Nicko van Someren <email@hidden>
    • Re: Overriding HTML translation in NSAttributedString
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Select checkbox in NSTableView
  • Next by Date: Re: Overriding HTML translation in NSAttributedString
  • Previous by thread: Re: Select checkbox in NSTableView
  • Next by thread: Re: Overriding HTML translation in NSAttributedString
  • Index(es):
    • Date
    • Thread