discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Missing implementations in NSScanner class


From: Richard Frith-Macdonald
Subject: Re: Missing implementations in NSScanner class
Date: Thu, 16 Jan 2014 15:20:06 +0000

On 16 Jan 2014, at 14:52, Mathias Bauer <mathias_bauer@gmx.net> wrote:

> Hi,
> 
> I discovered that NSScanner misses some "scan..." methods. At least in one 
> case it should be trivial to add it:
> 
>> - (BOOL) scanInteger: (NSInteger *)value
>> {
>>      long long result;
>>      BOOL ret = [self scanLongLong:&result];
>>      if (value && ret)
>>              *value = (NSInteger)result;
>>      return ret;
>> }
> 
> Would it be possible to add this as a patch?

Yes, that would be great.  Thanks.

Please don't forget to bracket the method declaration in the header file with 
the appropriate macro to control visibility to the OSX version in which the new 
method was added though.




reply via email to

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