mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 22:30:56 +00:00
Use a warning, do not throw an exception, when setStringValue: is called
with nil argument git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11572 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9abb36f32c
commit
7f6fb5b016
1 changed files with 6 additions and 2 deletions
|
@ -324,8 +324,12 @@ static NSColor *shadowCol;
|
||||||
{
|
{
|
||||||
NSString *string = aString;
|
NSString *string = aString;
|
||||||
|
|
||||||
/* We refuse nil for compatibiliy with MacOS X, which refuses nil */
|
/* We warn about nil for compatibiliy with MacOS X, which refuses
|
||||||
NSAssert (string != nil, NSInvalidArgumentException);
|
nil */
|
||||||
|
if (string == nil)
|
||||||
|
{
|
||||||
|
NSWarnMLog (@"attempt to use nil as string value");
|
||||||
|
}
|
||||||
|
|
||||||
_cell.type = NSTextCellType;
|
_cell.type = NSTextCellType;
|
||||||
_cell.contents_is_attributed_string = NO;
|
_cell.contents_is_attributed_string = NO;
|
||||||
|
|
Loading…
Reference in a new issue