" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

The anatomy of CFRelease in CoreFoundation and -release in Objective-C

Posted on November 23rd, 2015 by Mithlesh Jha

The anatomy of CFRelease(CFType type) and NSObject protocol’s -release message. CFRelease(), defined in CFBase releases a CFType instance. – release sends a release message to any of the NSObject derived class instance. In theory, both of these does the same job but applied to different types. We can define macros as shown,     #define […]