[cfe-commits] r134556 - /cfe/trunk/docs/AutomaticReferenceCounting.html

Fariborz Jahanian fjahanian at apple.com
Wed Jul 6 15:47:47 PDT 2011


Author: fjahanian
Date: Wed Jul  6 17:47:46 2011
New Revision: 134556

URL: http://llvm.org/viewvc/llvm-project?rev=134556&view=rev
Log:
Update document on use of ns_returns_not_retained
attribute on property. Document for // rdar://9636091.

Modified:
    cfe/trunk/docs/AutomaticReferenceCounting.html

Modified: cfe/trunk/docs/AutomaticReferenceCounting.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/AutomaticReferenceCounting.html?rev=134556&r1=134555&r2=134556&view=diff
==============================================================================
--- cfe/trunk/docs/AutomaticReferenceCounting.html (original)
+++ cfe/trunk/docs/AutomaticReferenceCounting.html Wed Jul  6 17:47:46 2011
@@ -1141,9 +1141,15 @@
 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





More information about the cfe-commits mailing list