diff --git a/Source/NSAttributedString.m b/Source/NSAttributedString.m index decfc060c..8680c2da2 100644 --- a/Source/NSAttributedString.m +++ b/Source/NSAttributedString.m @@ -27,6 +27,7 @@ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include #include #include #include @@ -34,9 +35,11 @@ #include #include #include +#include #include -#include #include +#include +#include // For the colour name spaces #include @@ -206,6 +209,29 @@ static Class converter_class(NSString *format, BOOL producer) @implementation NSAttributedString (AppKit) ++ (NSArray *) textFileTypes +{ + // FIXME + return [self textUnfilteredFileTypes]; +} + ++ (NSArray *) textPasteboardTypes +{ + // FIXME + return [self textUnfilteredPasteboardTypes]; +} + ++ (NSArray *) textUnfilteredFileTypes +{ + return [NSArray arrayWithObjects: @"txt", @"rtf", @"rtfd", @"html", nil]; +} + ++ (NSArray *) textUnfilteredPasteboardTypes +{ + return [NSArray arrayWithObjects: NSStringPboardType, NSRTFPboardType, + NSRTFDPboardType, NSHTMLPboardType, nil]; +} + + (NSAttributedString *) attributedStringWithAttachment: (NSTextAttachment *)attachment {