I get that the strong property is equivalent to retain as per this section of the documentation:
http://clang.llvm.org/docs/AutomaticReferenceCounting.html#ownership.spelling.property
but what is weak used for? It says that assign is equivalent to __unsafe_unretained ownership and that weak is equivalent to __weak ownership but I'm not sure I get the difference between weak and assign. Both seem to do the same thing in that neither of them specify that the object that contains the property owns the property object.
Can someone shed some light on this please?
http://clang.llvm.org/docs/AutomaticReferenceCounting.html#ownership.spelling.property
but what is weak used for? It says that assign is equivalent to __unsafe_unretained ownership and that weak is equivalent to __weak ownership but I'm not sure I get the difference between weak and assign. Both seem to do the same thing in that neither of them specify that the object that contains the property owns the property object.
Can someone shed some light on this please?