When trying to use -retain
, -release
, and -dealloc
while building my application using automatic reference counting in Xcode 4.2, I get an error like the following:
Automatic Reference Counting forbids explicit message send of 'dealloc'
Why am I seeing this error? Are -retain
, -release
, and -dealloc
no longer allowed under automatic reference counting?