Updated for changes in semantics of NSMutableAttributedString -string

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12497 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-11 17:21:13 +00:00
parent 025eee8a38
commit 9dfbbceaf2
5 changed files with 11 additions and 7 deletions

View file

@ -230,7 +230,11 @@
- (void)setAttributedAlternateTitle:(NSAttributedString *)aString - (void)setAttributedAlternateTitle:(NSAttributedString *)aString
{ {
// TODO // TODO
[self setAlternateTitle: [aString string]]; NSString *alternateTitle;
alternateTitle = AUTORELEASE ([[aString string] copy]);
[self setAlternateTitle: alternateTitle];
} }
- (NSAttributedString *)attributedTitle - (NSAttributedString *)attributedTitle

View file

@ -254,7 +254,7 @@ static NSColor *shadowCol;
} }
else else
{ {
return [(NSAttributedString *)_contents string]; return AUTORELEASE ([[(NSAttributedString *)_contents string] copy]);
} }
} }
@ -1072,7 +1072,7 @@ static NSColor *shadowCol;
if (_cell.contents_is_attributed_string) if (_cell.contents_is_attributed_string)
{ {
c = [(NSAttributedString *)_contents string]; c = AUTORELEASE ([[(NSAttributedString *)_contents string] copy]);
} }
else else
{ {

View file

@ -3337,13 +3337,13 @@ static SEL getSel;
- (void) validateEditing - (void) validateEditing
{ {
if (_textObject) if (_textObject)
{ {
NSFormatter *formatter; NSFormatter *formatter;
NSString *string; NSString *string;
formatter = [_selectedCell formatter]; formatter = [_selectedCell formatter];
string = [_textObject text]; string = AUTORELEASE ([[_textObject text] copy]);
if (formatter == nil) if (formatter == nil)
{ {

View file

@ -1354,7 +1354,7 @@ byExtendingSelection: (BOOL)flag
BOOL validatedOK = YES; BOOL validatedOK = YES;
formatter = [_editedCell formatter]; formatter = [_editedCell formatter];
string = [_textObject text]; string = AUTORELEASE ([[_textObject text] copy]);
if (formatter == nil) if (formatter == nil)
{ {

View file

@ -349,7 +349,7 @@ static Class textFieldCellClass;
NSString *string; NSString *string;
formatter = [_cell formatter]; formatter = [_cell formatter];
string = [_text_object text]; string = AUTORELEASE ([[_text_object text] copy]);
if (formatter == nil) if (formatter == nil)
{ {