Updating the UI while converting databases to V5

Ruslan Zasukhin ruslan_zasukhin at valentina-db.com
Wed Mar 27 15:56:26 CDT 2013


On 3/24/13 7:18 PM, "jda" <jda at his.com> wrote:

> 
>> 
>> Hi Jon,
>> 
>>> In RS Cocoa you can't even *read* a property from a UI element (e.g. a
>>> window)
>>> from a thread.
>> 
>> Do you mean that only main thread of app can do that in RB?
>> 
>> What can do other threads then?
>> 
>> You cannot have N windows, each working with own thread ???
>> Not cool somehow
>> 
> 
> No, you can't. You can have as many threads working as you like, but they
> can't touch properties of the an UI elements (updating windows, manipulating
> lists, etc.). Only the main thread can do that.

Ok so again:

Main Thread do
    
   Show dialog  Do Something and Infinit Progress Bar
   Start thread_2 

    WAIT while thread_2  finish and meanwhile progress
    bar is updated by this main thread


Trhead_2 do
   some long  Valentina task







-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list