how can i update GUI elements with values from a queue? if i use async queue construct, textlable don't get updated. Here is a code example i use:
- (IBAction)dbSizeButton:(id)sender {
dispatch_queue_t getDbSize = dispatch_queue_create("getDbSize", NULL);
dispatch_async(getDbSize, ^(void)
{
[_dbsizeLable setText:[dbmanager getDbSize]];
});
dispatch_release(getDbSize);
}
Thank you.
performSelectorOnMainThread:withObject:waitUntilDone:?