bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCell enhancement


From: Nicola Pero
Subject: Re: NSCell enhancement
Date: Tue, 23 Oct 2001 10:39:49 +0100 (BST)

thanks - applied

> Hi,
> 
> While porting GNUMail.app to MacOS-X, I've come across an annoying
> problem.
> 
> In Cocoa, if we call NSCell: -setStringValue with nil, we get an
> assertion.
> 
> I think we should modify NSCell: -setStringValue to:
> 
> - (void) setStringValue: (NSString*)aString
> {
>   NSString *string = aString;
> 
>   NSAssert(aString != nil, @"Invalid parameter not satisfying: aString !=
> nil");
> 
>   _cell.type = NSTextCellType;
>   ... 
> }
> 
> In order to make porting applications to MacOS-X easier. It may break
> some GNUstep apps but I think developers should update their code to be
> sure they don't pass nil objects to this method.
> 
> I'll see if we should also 'enhance' some other methods.
> 
> Thanks,
>       Ludovic
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]