Why can't ARC use regular release?
Example:
[weakObject doSomething]
From what I understand, ARC turns this into:
Object *strongObject = objc_autorelease(objc_loadWeakRetained(weakObject)); [strongObject doSomething];
Why doesn't ARC do this ?:
Object *strongObject = objc_loadWeakRetained(weakObject); [strongObject doSomething]; objc_release(strongObject);
I would like to do away with as many auto-rales in ARC as possible. I make a lot of asynchronous threads with GCD, and I end up having to add a lot of autodetection pools:
dispatch_async(self.myQueue, ^{ @autoreleasepool{ [weakObject doSomethingBig]; } });
source share