[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New text converter interface

From: Fred Kiefer
Subject: New text converter interface
Date: Sat, 19 Sep 2009 17:02:16 +0200
User-agent: Thunderbird (X11/20090817)

I just rewrote part of the text converter interface of
NSAttributedString. The new interface should be more powerful, as it
takes another options parameter and has the ability to return NSError
objects. It is also simpler as there is only one method left to
implement for each consumer or producer. And the whole text converter
concept is now fully extensible, any new text converter should be picked
up now and used by NSAttributedString. That way it should be fairly
simple to write a text converter for HTML or what ever other format you
want to support and ship it as a separate bundle that will be picked up
by gui at runtime.

If you already have a private text converter you will have to adjust the
interface. I already did that for the only text converters provided by
gui (RTF and RTFD).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]