• 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
Re: Cocoa window stops responding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa window stops responding


  • Subject: Re: Cocoa window stops responding
  • From: Jonathan Mitchell <email@hidden>
  • Date: Mon, 27 Apr 2015 10:27:24 +0100


> On 27 Apr 2015, at 09:53, Nisar Ahmed <email@hidden> wrote:
>
> My application has a UI having a main window which contains many views such
> as NSTableView, NSOutlineView, NSOpenGLView, many NSTextFields etc...
>
> The applications works normally but after some time the UI stops responding
> to the mouse clicks, the application does not hang but it seems that all
> the views stop redrawing itself. I have tried many things but fails to
> prevent or reproduce the behaviour. Need some advice on how to fix or
> atleast find out what is causing such behaviour.
>
> I am updating all UI controls on the main thread and using Cocoa bindings
> heavily.. apparently there is no memory leaks, I am using Xcode 6.1 on
> Mavericks
>
Personally I would try and follow the flow of events:
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/10000060i-CH3-SW11

You could try overriding NSWindow -sendEvent:
This action method dispatches mouse and keyboard events sent to the window by the NSApplication object.
This should help you to narrow down the location of the problem.

Jonathan
_______________________________________________

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


References: 
 >Cocoa window stops responding (From: Nisar Ahmed <email@hidden>)

  • Prev by Date: Cocoa window stops responding
  • Next by Date: Re: Cocoa window stops responding
  • Previous by thread: Cocoa window stops responding
  • Next by thread: Re: Cocoa window stops responding
  • Index(es):
    • Date
    • Thread