what is the difference between strong (in LLVM compiler) and retain( in GCC compiler) ?
Asked
Active
Viewed 6,258 times
7
-
possible duplicate of [Objective-C ARC: strong vs retain and weak vs assign](http://stackoverflow.com/questions/8927727/objective-c-arc-strong-vs-retain-and-weak-vs-assign) – Brad Larson Apr 24 '12 at 16:58
-
See also [@property definitions with ARC: strong or retain?](http://stackoverflow.com/questions/7796476/property-definitions-with-arc-strong-or-retain) – Brad Larson Apr 24 '12 at 16:58
2 Answers
10
strong
is a new feature in iOS 5 Automatic Reference Counting (ARC) which behave the same as retain
in iOS 4. Referenced Article.
Also, check out this other SO question: @property definitions with ARC: strong or retain?
-1
strong is a new keyword that was introduced along with arc (automatic reference counting). There are a bazillion articles about it if you search google, including this one http://cupsofcocoa.com/2011/11/27/the-jungle-part-4-automatic-reference-counting/

borrrden
- 33,256
- 8
- 74
- 109
-
yes, i am aware of strong keyword features. But i just want to know how strong(LLVM) differs from retain(GCC) ? – Matrix Apr 26 '12 at 08:50