> On Sep 26, 2017, at 1:16 AM, Tamas Nagy <tamas.lov.n...@gmail.com> wrote:
> 
> “state” of the NSButton is a NSInteger property, so that should be safe to 
> read from a background thread, right?

No. You can’t tell anything about a property’s implementation from its return 
type. You’re assuming it’s a synthesized getter, but there’s no reason it 
couldn’t be a custom method that does arbitrary computation before returning 
the value, and there’s no way to know whether that work is thread-safe or not.

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to