[NSButton state] must by used from the main thread
[NSButton state] must by used from the main thread
- Subject: [NSButton state] must by used from the main thread
- From: Tamas Nagy <email@hidden>
- Date: Tue, 26 Sep 2017 10:16:46 +0200
Hi there,
XCode 9’s new main thread checker feature found the possible issue mentioned on
the subject line. Indeed there is a background thread that check’s the state of
an NSButton subclass, but I’m wondering if this is a real issue - I understand
the problems with changing the UI from a background thread, but “state” of the
NSButton is a NSInteger property, so that should be safe to read from a
background thread, right?
Thanks in advance!
Best,
Tamas
_______________________________________________
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