In the Build Phases tab of the target, open compile sources and set the 
compiler flags for your subclass’s .m to -fno-objc-arc. 

Don’t forget that the signature for -release is -(oneway void)release, not just 
-(void)release :)

Daniel


> On May 22, 2019, at 12:13 PM, Carl Hoefs <[email protected]> 
> wrote:
> 
> 
>> On May 22, 2019, at 11:31 AM, Daniel DeCovnick <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> You can always subclass, turn off ARC for that file, and override -release 
>> or -autorelease to breakpoint in.
> 
> How does one turn off ARC for a specific file?
> -Carl
> 

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to