Re: Retain count in non ARC
Re: Retain count in non ARC
- Subject: Re: Retain count in non ARC
- From: Ben Kennedy <email@hidden>
- Date: Sun, 06 Apr 2014 20:58:30 -0700
On 06 Apr 2014, at 8:44 pm, Graham Cox <email@hidden> wrote:
> I thought about mentioning it, but figured it might already sound a bit complicated. Isn't 'nonatomic' the default? If not, I can't actually find the documentation about it. Also, if 'atomic' is the default, won't performance suffer with all those unnecessary locks?
It is for these two reasons that, from years of conditioning, I can watch my fingers type "(nonatomic " automatically and as if my magic as soon as I finish typing "@property " ...
The atomic vs. nonatomic default is a peculiarity of Obj-C that never seemed to be well documented or explained when properties were first introduced.
b
--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden