mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 04:41:00 +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
5d1da0dfe9
commit
ff90dd0388
1 changed files with 2 additions and 2 deletions
|
@ -116,9 +116,9 @@ static id _NSCONTROL_CELL_CLASS = nil;
|
||||||
|
|
||||||
- (void) setCell: (NSCell *)aCell
|
- (void) setCell: (NSCell *)aCell
|
||||||
{
|
{
|
||||||
if (![aCell isKindOfClass: [NSCell class]])
|
if (aCell != nil && [aCell isKindOfClass: [NSCell class]] == NO)
|
||||||
[NSException raise: NSInvalidArgumentException
|
[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];
|
[cell setControlView: nil];
|
||||||
[aCell setControlView: self];
|
[aCell setControlView: self];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue