• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subclassing NSControl and inheritance of target, action properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Subclassing NSControl and inheritance of target, action properties
      • From: Roland King <email@hidden>
References: 
 >Subclassing NSControl and inheritance of target, action properties (From: Graham Cox <email@hidden>)
 >Re: Subclassing NSControl and inheritance of target, action properties (From: Roland King <email@hidden>)
 >Re: Subclassing NSControl and inheritance of target, action properties (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Subclassing NSControl and inheritance of target, action properties
  • Next by Date: Re: Subclassing NSControl and inheritance of target, action properties
  • Previous by thread: Re: Subclassing NSControl and inheritance of target, action properties
  • Next by thread: Re: Subclassing NSControl and inheritance of target, action properties
  • Index(es):
    • Date
    • Thread