AFAIK, yes.
Please file a bug to add to the ones I have filed on this and similar behaviors.
On Jan 13, 2010, at 9:49 PM, cocoa-dev-requ...@lists.apple.com wrote:
> Message: 10
> Date: Thu, 14 Jan 2010 12:54:46 +1100
> From: Graham Cox
> Subject: Analyzer in error?
> To: Cocoa-Dev List
> Mess
On 14/01/2010, at 1:09 PM, Greg Parker wrote:
> Yes, the static analyzer is wrong here.
> But your code sends the message to [self class] instead of NSData
Thanks, makes sense. I can just as well use NSData here as [self class] -
there's no particular reason to use [self class] here, except
On Jan 13, 2010, at 5:54 PM, Graham Cox wrote:
> @implementation NSData (SHA1Hash)
>
> - (NSData*) sha1Hash
> {
> // calculates the 160 bit SHA-1 digest of the given data
>
> unsigned char* digest = (unsigned char*) malloc(20);
> SHA1([self bytes], [self length], digest)
Possibly - do you want to try the XCode list for that one, I've been
asking CLANG questions over there.
Graham Cox wrote:
Hi all, I have the following code in a category on NSData:
@implementation NSData (SHA1Hash)
- (NSData*) sha1Hash
{
// calculates the 160 bit SHA-1 digest of