]> granicus.if.org Git - clang/commitdiff
Update document on use of ns_returns_not_retained
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 6 Jul 2011 22:47:46 +0000 (22:47 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 6 Jul 2011 22:47:46 +0000 (22:47 +0000)
attribute on property. Document for // rdar://9636091.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134556 91177308-0d34-0410-b5e6-96231b3b80d8

docs/AutomaticReferenceCounting.html

index 88704d939abbd9929afe380d3df21243f2bfdd32..280462481cffd7dcf51e4dcbb1a02d2d97ecb885 100644 (file)
@@ -1141,9 +1141,15 @@ annotating the method with either of
 the <tt>ns_returns_autoreleased</tt> or
 <tt>ns_returns_not_retained</tt> attributes.</p>
 
+<p>Properties also follow same naming rules as methods. This means that 
+those in the <tt>alloc</tt>, <tt>copy</tt>, <tt>mutableCopy</tt>,
+and <tt>new</tt> families provide access to 
+<a href="#objects.operands.retained_returns">retained objects</a>. 
+This can be overridden by annotating the property with 
+<tt>ns_returns_not_retained</tt> attribute.</p>
+
 <div id="family.semantics.init">
 <h1>Semantics of <tt>init</tt></h1>
-
 <p>Methods in the <tt>init</tt> family implicitly
 <a href="#objects.operands.consumed">consume</a> their <tt>self</tt>
 parameter and <a href="#objects.operands.retained_returns">return a