• 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
Issue round-tripping XHTML through NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue round-tripping XHTML through NSTextView


  • Subject: Issue round-tripping XHTML through NSTextView
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 16 Nov 2005 14:17:55 -0600

I'm using an NSTextView to display and edit XHTML. The XHTML can contain links to files and the links can be relative or absolute. Thanks to help from the list, I know how to get relative links to work properly, using NSBaseURLDocumentOption, but when I translate back to XHTML, all the links are absolute. Is there a way to preserve relative vs. absolute?

One thought I had relating to this was to add a custom attribute to the element before creating the NSAttributedString. I hoped that custom attributes would be preserved through the round-trip, but alas, that doesn't seem to be the case. Should custom attributes be preserved or is there a way to get this to happen? If not, I'll file a bug.

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: Issue round-tripping XHTML through NSTextView
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: NSDrawer buttons still active when parent window has a sheet open
  • Next by Date: Displaying image and core data
  • Previous by thread: Re: Loadable bundle as a document window
  • Next by thread: Re: Issue round-tripping XHTML through NSTextView
  • Index(es):
    • Date
    • Thread