On Mar 17, 2012, at 7:05 PM, G S wrote:

> On Sat, Mar 17, 2012 at 4:55 PM, Roland King <[email protected]> wrote:
> 
>> Hmm - with respect - autorelease is an implementation detail. Nothing says
>> that objects created through the convenience constructors like [ NSDate
>> date ] have to be autoreleased, they just have to be valid for long enough
>> to be useful, they could be held in a cache and cleaned out by little
>> gnomes later.
>> 
> 
> Fair enough.  Better to have said, "objects I didn't allocate.”

Or better yet, “objects you don’t own.” In addition to allocating an object, 
you can take ownership of an object by retaining an object that something else 
passes to you.

> I would've converted my project to ARC had time permitted.  I will say that
> this new understanding does make me reconsider my opinion on the merits of
> properties (meaning I think they have more merit than I used to).
> 
> Would it be a waste of time to go through and add properties for my members
> before converting to ARC?  Does it make any difference?

It makes the code cleaner and more flexible, IMO.

Charles
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to