mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 18:31:20 +00:00
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:
parent
904597d9d5
commit
db1b1d040c
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue