MacOS 10.10: Almost all properties of NSView are declared as atomic

Originator:stephan.michels
Number:rdar://17224315 Date Originated:08-Jun-2014 09:27 PM
Status:Open Resolved:
Product:OS X SDK Product Version:MacOS 10.10
Classification:Other Bug Reproducible:Always
 
Almost all properties of NSView and other classes of AppKit are declared as atomic, because atomic is default if you don’t use “nonatomic”.

@property (readonly, assign) NSWindow *window;

It is hard to believe that all properties are atomic, because you can use those classes only from the main thread without complications. They are not thread-safe.

You should declare those properties as nonatomic.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!