About ARC


#1

The book says “Following the idea of ownership, now it becomes clear why you need to autorelease the string in your description method: The employee object created the string, but it does not want to own it. It wants to give it away.”

this is mean that “description method create string, but employee object doesn’t own it. and string is also object then it is possible
that object(string) exist without reference in the heap?”


#2

[quote]this is mean that “description method create string, but employee object doesn’t own it. and string is also object then it is possible
that object(string) exist without reference in the heap?”[/quote]
If the code receiving the autoreleased string does not retain it, then the string will be released sometime in the near future.


#3

thank for help