• 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: Application Hang (Cocoa-Java)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application Hang (Cocoa-Java)


  • Subject: Re: Application Hang (Cocoa-Java)
  • From: Graham <email@hidden>
  • Date: Sun, 15 May 2005 21:05:28 -0400

Hi Chris,

I am calling setNeedsDisplay on various views on the tabs from the secondary threads.
joar pointed me to documentation stating that secondary threads should not call the display methods but instead should get the main run loop to call these methods. I am still trying to determine the best way to do this in Java within the constraints of my design. At this point, however, I still don't know for sure what the problem is.
I did narrow it down to the hang happening when a view within the tabview is switched away fro, and my view has a thread causing the view to be updated.


Regards,

-Graham

On May 15, 2005, at 7:23 PM, Chris Hanson wrote:

On May 15, 2005, at 7:56 AM, Graham wrote:

I have an app with an NSTabView. Each view on the NSTabView has a Java Thread that is used to populate the view with data from a remote site.


Are you manipulating the Cocoa controls at all from your Java thread?

  -- Chris





_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Application Hang (Cocoa-Java) (From: Graham <email@hidden>)
 >Re: Application Hang (Cocoa-Java) (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: FSCopyObjectAsync: useless and crippled
  • Next by Date: Re: Application Hang (Cocoa-Java)
  • Previous by thread: Re: Application Hang (Cocoa-Java)
  • Next by thread: Re: Application Hang (Cocoa-Java)
  • Index(es):
    • Date
    • Thread