[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GUI updates do not show even from separate thread
From: |
Riccardo Mottola |
Subject: |
GUI updates do not show even from separate thread |
Date: |
Mon, 4 Jul 2016 11:47:58 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
Hi,
I have FTP - written quite a while ago.
Easy access here:
https://github.com/gnustep/gap/tree/master/user-apps/FTP
The implementation - hopefully correct - is the following: the download
happens in a separate thread inside ftpclient.m which communicates back
the progress (advancement of the file being transferred).
The "progress" is shown with a ProgressBar and some text fields, quite
simple.
On Mac, everything works like a charme! The progress bar is smooth and I
see the bytes and transfer speed!
On GNUstep not: it is set at the beginning, then no updates until the end.
The critical method is:
- (oneway void)setTransferProgress:(NSNumber *)bytesTransferred
I added "oneway" yesterday - with no change in functionality if not a
quite good gain of speed on Mac: the worker thread doesn't block while
actually "updating" the GUI.
why do I have this issues on GNUstep? Any special care or tricks?
Maybe I need to set the certain views to display or needs display on GS?
I already have this old trick:
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantPast]];
It shouldn't be needed with two threads I think.. and with or without no
effect.
Riccardo
- GUI updates do not show even from separate thread,
Riccardo Mottola <=
- Re: GUI updates do not show even from separate thread, Fred Kiefer, 2016/07/06
- Re: GUI updates do not show even from separate thread, Sebastian Reitenbach, 2016/07/06
- Re: GUI updates do not show even from separate thread, Riccardo Mottola, 2016/07/06
- Re: GUI updates do not show even from separate thread, Fred Kiefer, 2016/07/07
- Re: GUI updates do not show even from separate thread, Riccardo Mottola, 2016/07/07
- Re: GUI updates do not show even from separate thread, Fred Kiefer, 2016/07/12
- Re: GUI updates do not show even from separate thread, Richard Frith-Macdonald, 2016/07/12
- Re: GUI updates do not show even from separate thread, Fred Kiefer, 2016/07/12
- Re: GUI updates do not show even from separate thread, Niels Grewe, 2016/07/13
- Re: GUI updates do not show even from separate thread, Richard Frith-Macdonald, 2016/07/13