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
This commit is contained in:
Nicola Pero 2002-06-11 14:59:13 +00:00
parent 904597d9d5
commit db1b1d040c

View file

@ -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