Hi there,
I have been spending some time to solve this problem I have in my code. In my Sql storage class I have two methods which I use to encode and decode one single big object.
- (NSData*) encodeWithData

NSArray*)data key

NSString*)key
{
NSLog(@"encoding data for key: %@", key);
NSData* archivedData = [NSKeyedArchiver archivedDataWithRootObject:data];
}
- (NSArray*) decodeWithData

NSData*)data key

NSString*)key
{
NSLog(@"decoding data for: %@", key);
NSArray* unarchivedData = (NSArray*)[NSKeyedUnarchiver unarchiveObjectWithData:data];
return unarchivedData;
The code works just fine, but in the Instrument "Leak" tool reveals a leak everytime this method is called.
I tried different options, but nothing have worked so far.
Can anybody help me please?
Thx