Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In XCode 4.3.2, when I run the ARC conversion refactor tool, all of my property options that were "retain" are NOT being changed into "strong"

In XCode 4.3.2, when I run the ARC conversion refactor tool, all of my property options that were "retain" are NOT being changed into "strong". Is "strong" implied now or is this just a problem with XCode 4.3.2?

Example:

Before

@property (nonatomic, retain) NSString * someString;

After

@property (nonatomic) NSString * someString;
like image 681
joseph.hainline Avatar asked Apr 19 '12 18:04

joseph.hainline


1 Answers

"strong" is the default when using ARC (LLVM 3.1), so the new code is correct.
(before ARC, the default was "assign")
See http://clang.llvm.org/docs/AutomaticReferenceCounting.html#ownership.spelling.property

like image 146
Erlend Böe Avatar answered Oct 05 '22 20:10

Erlend Böe