| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi,
I'm trying to get into Obj-C after years in Delphi, so I need to get the new object model clear. Much is similar, but the object life-cycle stuff is confusing. Hillegass say:
* Objects created by alloc or copy have a retain count of 1 and are NOT in the autorelease pool
* Objects obtained any other way have a retain count of 1 and are in the autorelease pool.
Can someone explain the thinking behind this. Is there a good reason or a historical reason for this duality? It might be nice of alloc and copy autoreleased their objects as well, for consistency. Why is that not done?
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.