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:
nico 2002-02-11 17:21:13 +00:00
parent 623d2351e4
commit 166c60efbe
5 changed files with 11 additions and 7 deletions

View file

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

View file

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

View file

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

View file

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

View file

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