71
71
- (id) initWithString: (NSString*)aString attributes: (NSDictionary*)attributes;
73
73
//Retrieving character information
74
- (unsigned int) length;
74
- (NSUInteger) length;
75
/** Returns the string content of the receiver.<br />
76
* NB. this is actually a proxy to the internal content (which may change)
77
* so if you need an immutable instance yu should copy the returned value,
78
* not jhust retain it.
75
80
- (NSString*) string; //Primitive method!
77
82
//Retrieving attribute information
78
- (NSDictionary*) attributesAtIndex: (unsigned int)index
83
- (NSDictionary*) attributesAtIndex: (NSUInteger)index
79
84
effectiveRange: (NSRange*)aRange; //Primitive method!
80
- (NSDictionary*) attributesAtIndex: (unsigned int)index
85
- (NSDictionary*) attributesAtIndex: (NSUInteger)index
81
86
longestEffectiveRange: (NSRange*)aRange
82
87
inRange: (NSRange)rangeLimit;
83
88
- (id) attribute: (NSString*)attributeName
84
atIndex: (unsigned int)index
89
atIndex: (NSUInteger)index
85
90
effectiveRange: (NSRange*)aRange;
86
- (id) attribute: (NSString*)attributeName atIndex: (unsigned int)index
91
- (id) attribute: (NSString*)attributeName atIndex: (NSUInteger)index
87
92
longestEffectiveRange: (NSRange*)aRange inRange: (NSRange)rangeLimit;
89
94
//Comparing attributed strings
115
120
//Changing characters and attributes
116
121
- (void) appendAttributedString: (NSAttributedString*)attributedString;
117
122
- (void) insertAttributedString: (NSAttributedString*)attributedString
118
atIndex: (unsigned int)index;
123
atIndex: (NSUInteger)index;
119
124
- (void) replaceCharactersInRange: (NSRange)aRange
120
125
withAttributedString: (NSAttributedString*)attributedString;
121
126
- (void) replaceCharactersInRange: (NSRange)aRange
129
134
@end //NSMutableAttributedString
131
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
132
@interface NSAttributedString (GSCategories)
134
* Dep[recated synonym for attributedSubstringFromRange:
135
* for consistency with NSString
137
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange;
141
136
#endif /* GS_API_MACOSX */
143
138
#if defined(__cplusplus)
142
#if !NO_GNUSTEP && !defined(GNUSTEP_BASE_INTERNAL)
143
#import <GNUstepBase/NSAttributedString+GNUstepBase.h>
147
146
#endif /* __NSAttributedString_h_GNUSTEP_BASE_INCLUDE */