ios - TMCache - using Blocks to Monitor Cache Events -
ios - TMCache - using Blocks to Monitor Cache Events -
from documentation:
/** block executed after object added cache. block excuted within barrier, i.e. reads , writes suspended duration of block. */ @property (copy) tmmemorycacheobjectblock didaddobjectblock;
i'm trying create utilize of print message when objects added cache. effort far:
[[_timedcache memorycache] setdidaddobjectblock:^{ nslog(@"added cache"); }];
this gives "parameter type mismatch" compiler error however. i'm new objective-c , doing naive here. suggestions?
tmemorycahceobjectblock
has next signature: (tmmemorycache *cache, nsstring *key, id object)
, block doesn't have. alter signature of block , golden.
ios objective-c objective-c-blocks
Comments
Post a Comment