help in understanding OOP) Standard editor - shows one file at a time Assistant editor - defaults to show the header and implementation files Version editor - shows changes since the last commit
away as long as at least one person is holding on to its leash. So the dog’s retain count is at least 1. When no one is holding onto that leash, the dog will run away (dealloc). Many people can have leashes hooked to the dog (though that would be weird).
call methods on the object with both strong and weak references. So.. both a person holding the leash (strong property) and a person standing near the dog but not holding the leash (weak property) can pet the dog, or kick the dog, or give the dog commands or see the dog.
number of strong pointers to an object. When the count is 0, the object is destroyed (deallocated). This is why the circle object from a few slides ago perished. Its retain count had reached 0 because nothing had a strong pointer to it.
a retain count of 1. It’ll be 1 as long as it’s in scope or held strongly by another object. In the above case, car’s retain count is one until the function returns. Assigning a strong property (e.g. an instance variable) to car ups the retain count to 2 and so it’ll still be in memory when the function returns.
are the same unless you are writing a framework. If writing a framework, you must declare open any class or class member that you want to allow users to access. For us, open and public will be the same. public is the default.