Re: Subclassing NSControl and inheritance of target, action properties
Re: Subclassing NSControl and inheritance of target, action properties
- Subject: Re: Subclassing NSControl and inheritance of target, action properties
- From: Roland King <email@hidden>
- Date: Fri, 30 Jan 2015 09:18:17 +0800
> On 30 Jan 2015, at 08:38, Quincey Morris <email@hidden> wrote:
>
> On Jan 29, 2015, at 16:26 , Graham Cox <email@hidden <mailto:email@hidden>> wrote:
>>
>> 'atomic' attribute on property 'action' does not match the property inherited from 'NSControl'
>
> The 10.10 SDK uses real @property declarations, but doesn’t specify atomicity, which means the property defaults to atomic. You said before that "the properties have to be nonatomic”. So you’re declaring them nonatomic? You can’t.
>
> Note that it makes no difference. On all existing Apple architectures, “atomic” properties of 8-byte quantities (or smaller) (including pointers) have no overhead, so atomic properties synthesize the same code as nonatomic properties. (Well, that’s what I recall Greg Parker saying, a few months ago.)
>
I can find this http://lists.apple.com/archives/objc-language/2013/Apr/msg00119.html <http://lists.apple.com/archives/objc-language/2013/Apr/msg00119.html>, is that what you were remembering or is there something stronger my google-fu isn't finding, which wouldn't be for the first time?
_______________________________________________
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