mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:30:44 +00:00
Permit nil cel values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4039 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d7d1ea394c
commit
293ecacd91
1 changed files with 2 additions and 2 deletions
|
@ -116,9 +116,9 @@ static id _NSCONTROL_CELL_CLASS = nil;
|
|||
|
||||
- (void) setCell: (NSCell *)aCell
|
||||
{
|
||||
if (![aCell isKindOfClass: [NSCell class]])
|
||||
if (aCell != nil && [aCell isKindOfClass: [NSCell class]] == NO)
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"attempt to set silly value for control cell"];
|
||||
format: @"attempt to set non-cell object for control cell"];
|
||||
|
||||
[cell setControlView: nil];
|
||||
[aCell setControlView: self];
|
||||
|
|
Loading…
Reference in a new issue