• 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: Overriding property attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding property attributes


  • Subject: Re: Overriding property attributes
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 03 Dec 2015 14:57:40 -0800

AFAIK, ‘nonatomic’ is nothing more than a hint to the property synthesizer that it can create getter/setter methods that are faster but not thread-safe. That is, it only has effect inside the @implementation of the class, and no effect on callers.

So it seems weird that you get a warning at all.

Do you actually need to declare `description` at all in your code generator? It’s already inherited from NSObject, so there’s no point in repeating it in a subclass interface...

—Jens
_______________________________________________

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


References: 
 >Overriding property attributes (From: Jonathan Mitchell <email@hidden>)

  • Prev by Date: Overriding property attributes
  • Next by Date: Need Help with Swift
  • Previous by thread: Overriding property attributes
  • Next by thread: Need Help with Swift
  • Index(es):
    • Date
    • Thread