Retain/release of returned objects
问题 I am new to Objective-C, so this might be a dumb question. I cannot help but see the similarities between ObjC and Microsoft's COM with respect to memory management ( AddRef / Release vs retain / release ). In a COM environment, it's more or less imposed on you to always AddRef ( retain ) an object before returning it to the caller. From what I've seen so far (I'm a third through Cocoa® Programming for Mac® OS X (3rd Edition)), the memory management part is somewhat fuzzy. Assuming there is