• 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
User interface unresponsive in window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

User interface unresponsive in window


  • Subject: User interface unresponsive in window
  • From: Jonathan Taylor <email@hidden>
  • Date: Wed, 15 Apr 2015 15:04:54 +0100

I've started encountering intermittent problems in one specific window in my application, where text input boxes become unresponsive, steppers remain highlighted after clicking, etc. I'm rather short of ideas on how to debug this, particular since I haven't worked out how to reproduce it reliably. Other windows seem to remain unaffected.

From dimly-remembered past experience I have a feeling it could be related to something somewhere resulting in GUI code being executed on a non-main thread. There is in principle a risk of that, since the window interacts with peripherals/drivers etc involving multithreaded code. I've tried to isolate the GUI code from the multithreaded code, but may perhaps have missed some obscure case. [ideally, I'd probably totally isolate anything multithreaded from ObjC code, but that would mean a proliferation of shadow classes, which is something I'd prefer to avoid being dragged into]

Even if my suspicion about the cause (multithreading+GUI) is correct, I'm still not sure how to pin down and debug the problem, since there are so many entry points into GUI-related code (e.g. property value changes), not all of which even involve my own code directly. It would be great if there was some way of enabling a global "exception if main-thread requirements are violated", but I certainly haven't heard of such a thing (and can imagine there could be very good reasons why it would be prohibitively hard to implement). Can anyone suggest ways to diagnose and debug my problem (or indeed suggest other possible causes I haven't thought of)?

Thanks in advance
Jonny
_______________________________________________

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: User interface unresponsive in window
      • From: Uli Kusterer <email@hidden>
    • Re: User interface unresponsive in window
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: How to safely delete a WebView delegate object?
  • Next by Date: Re: NSTableView content height
  • Previous by thread: Re: Master - Detail: How to get back?
  • Next by thread: Re: User interface unresponsive in window
  • Index(es):
    • Date
    • Thread