trapper
trapper

Reputation: 11993

@property definitions with ARC: Is strong default now?

Just running the ARC refactoring tool on the new xcode 4.3.1 and noticed that my (nonatomic, retain) properties are being swapped out for just (nonatomic) instead of (nonatomic, strong) like in the previous xcode.

My code seems to run fine after this change so I am assuming that it is defaulting to strong anyway, anyone know why things have changed with the ARC converter?

Upvotes: 40

Views: 10400

Answers (2)

Ash
Ash

Reputation: 5712

When the property is a basic type, the default value is assign, when the property is a object type, the default value is strong

Upvotes: 0

rickster
rickster

Reputation: 126127

Yes, strong is the default in Xcode 4.3 and later. It's documented both in the LLVM docs and in Apple's guides to using properties and working with ARC.

Upvotes: 57

Related Questions