From ddecdea475f0e665f088c7eefe16749d923d10f1 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 11 Jun 2002 14:59:13 +0000 Subject: [PATCH] Modified the protocol to allow the caller to specify the class to use when creating the new attributed string git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13840 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/GSTextConverter.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Headers/gnustep/gui/GSTextConverter.h b/Headers/gnustep/gui/GSTextConverter.h index c5d9e6dd6..b4fc6da04 100644 --- a/Headers/gnustep/gui/GSTextConverter.h +++ b/Headers/gnustep/gui/GSTextConverter.h @@ -44,11 +44,18 @@ documentAttributes: (NSDictionary*)dict; @end +/* + * The 'class' argument must be NSAttributedString (or a subclass); + * the results of parsing will be saved into a newly created object of + * that class, which is then returned. + */ @protocol GSTextConsumer + (NSAttributedString*) parseData: (NSData *)aData - documentAttributes: (NSDictionary **)dict; + documentAttributes: (NSDictionary **)dict + class: (Class)class; + (NSAttributedString*) parseFile: (NSFileWrapper *)aFile - documentAttributes: (NSDictionary **)dict; + documentAttributes: (NSDictionary **)dict + class: (Class)class; @end #endif // _GNUstep_H_GSTextConverter