I'm attempting to use the RocketSocket
library on a OS 10.7 but Xcode keeps complaining that the property base64Encoding
not found in NSData
and NSMutable
regarding these lines in SRWebSocket.m
:
return [[NSData dataWithBytes:md length:CC_SHA1_DIGEST_LENGTH] base64Encoding];
_secKey = keyBytes.base64Encoding;
After some googling, I found that base64Encoding
is deprecated. I'm a relative noob to ObjC (and Mac in general). Anyone have any idea how to fix this problem?