> For the record, reference counting for memory management is one of the > oldest techniques in software and is not unique to Objective-C or > Cocoa.
True, but slightly-deferred release is not common, and the autorelease pool is pretty much unique. And the uniqueness does throw newbies off. The autorelease pool is an elegant technique which actually eliminates the majority of reference count incrementing/decrementing code (outside accessors), but it does seem to throw people off. When you *read* about Cocoa memory management, it may seem like there's a lot more to do than there actually is when you start *writing* Cocoa code. Unless of course you don't follow the rules literally, and tie yourself up in knots, using convenience methods, then unnecessarily retaining the object, then passing it through to some Cocoa method, then (auto)releasing it... -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]