mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:37:39 +00:00
* Source/NSButtonCell.m (-title): Return @"" instead of nil
* Source/NSButtonCell.m (-alternateTitle): Return @"" instead of nil * Source/NSButtonCell.m (-attributedAlternateTitle): Use [self alternateTitle] instead of accessing _altContents directly to guard against _altContents being nil * Source/NSButtonCell.m (-attributedTitle): Don't return nil. Use [self title] instead of accessing _contents directly to guard against _contents being nil * Source/NSButtonCell.m (-keyEquivalent): Return @"" instead of nil * Source/NSButtonCell.m (-encodeWithCoder): For keyEquivelant and alternateTitle, now that the methods never return nil, instead of checking if they return nil to decide whether to encode them, check if the string length is > 0. * Source/NSToolbarItem.m (-label): Return @"" instead of nil. * Source/NSCell.m (-stringValue): Return @"" instead of nil * Source/NSCell.m (-attributedStringValue): Don't return nil. Use [self stringValue] instead of accessing _contents directly to guard against _contents being nil. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33598 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d919131abb
commit
a15066d183
4 changed files with 64 additions and 10 deletions
|
@ -1282,7 +1282,14 @@ NSString *GSMovableToolbarItemPboardType = @"GSMovableToolbarItemPboardType";
|
|||
return [menuItem title];
|
||||
}
|
||||
|
||||
return _label;
|
||||
if (nil != _label)
|
||||
{
|
||||
return _label;
|
||||
}
|
||||
else
|
||||
{
|
||||
return @"";
|
||||
}
|
||||
}
|
||||
|
||||
- (NSSize) maxSize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue