mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:20:37 +00:00
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:
parent
025eee8a38
commit
9dfbbceaf2
5 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -1354,7 +1354,7 @@ byExtendingSelection: (BOOL)flag
|
|||
BOOL validatedOK = YES;
|
||||
|
||||
formatter = [_editedCell formatter];
|
||||
string = [_textObject text];
|
||||
string = AUTORELEASE ([[_textObject text] copy]);
|
||||
|
||||
if (formatter == nil)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue