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: Quincey Morris <email@hidden>
- Date: Fri, 30 Jan 2015 00:38:59 +0000
On Jan 29, 2015, at 16:26 , Graham Cox <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.)
_______________________________________________
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