• 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
[NSButton state] must by used from the main thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

  • Follow-Ups:
    • Re: [NSButton state] must by used from the main thread
      • From: Jens Alfke <email@hidden>
    • Re: [NSButton state] must by used from the main thread
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: using AppleScript to print an HTML document
  • Next by Date: Re: [NSButton state] must by used from the main thread
  • Previous by thread: Re: using AppleScript to print an HTML document
  • Next by thread: Re: [NSButton state] must by used from the main thread
  • Index(es):
    • Date
    • Thread