Re: java cocoa appkit application and multiple threads
Re: java cocoa appkit application and multiple threads
- Subject: Re: java cocoa appkit application and multiple threads
- From: "Nick Emery" <email@hidden>
- Date: Thu, 24 May 2001 08:28:38 +0100
- Organization: Peramon technology Ltd
>
threads that all have access to the same window. This allows me to keep
>
the
>
UI responsive, display the progress indicator, etc.
do you mean that your extra thread has access to the progress indicator object, and you simply call its update methods from that extra thread?
>
When my thread completes, it calls back to the window that spawned it and
>
sets any data that was being generated. It all seems to work pretty well.
what do you mean by "calls back"? do you simply call the necessary update methods from the extra thread?
in my case, i have an NSTableView the data of which needs to be obtained by the extra thread. i also have a progress bar. do i simply call the necessary progress bar update methods in the extra thread while the data is being loaded? Once the data is all loaded, do i then call NSTableView.reloadData() from the extra thread to get it to display the new data?
--nikki