mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 21:30:59 +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
3550e38fea
commit
ddecdea475
1 changed files with 9 additions and 2 deletions
|
@ -44,11 +44,18 @@
|
||||||
documentAttributes: (NSDictionary*)dict;
|
documentAttributes: (NSDictionary*)dict;
|
||||||
@end
|
@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
|
@protocol GSTextConsumer
|
||||||
+ (NSAttributedString*) parseData: (NSData *)aData
|
+ (NSAttributedString*) parseData: (NSData *)aData
|
||||||
documentAttributes: (NSDictionary **)dict;
|
documentAttributes: (NSDictionary **)dict
|
||||||
|
class: (Class)class;
|
||||||
+ (NSAttributedString*) parseFile: (NSFileWrapper *)aFile
|
+ (NSAttributedString*) parseFile: (NSFileWrapper *)aFile
|
||||||
documentAttributes: (NSDictionary **)dict;
|
documentAttributes: (NSDictionary **)dict
|
||||||
|
class: (Class)class;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif // _GNUstep_H_GSTextConverter
|
#endif // _GNUstep_H_GSTextConverter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue