Re: Problem with updating NSProgressIndicator

2008-05-21 Thread Vitaly Ovchinnikov
Thank you. > It's up to you what OS you want to support, a trade-off between > development/testing time and market size. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Problem with updating NSProgressIndicator

2008-05-21 Thread Jens Alfke
On 20 May '08, at 9:16 PM, Vitaly Ovchinnikov wrote: Anyway, should I "forget" about Tiger? I want to release my app this summer and I don't think that it is a good idea to drop support of the previous OS. Some apps are Leopard-only, usually because they require new APIs (like Core Animatio

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
>> Do I need to report this to Apple? Or what? > > Not unless you can reproduce it on 10.5 somehow. The only thing Apple would > fix in 10.4 nowadays is some kind of critical security bug or catastrophic > system error. Well, actually I already submitted this problem to apple. Maybe they'll take a

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Jens Alfke
On 20 May '08, at 2:30 PM, Vitaly Ovchinnikov wrote: Yes, that's it. But I can reproduce it at every run. Just Command+R at XCode at here it is. I can't reproduce it at all on 10.5.2. I've tried launching in Xcode and from the Finder, and being careful not to click/type/move the mouse aft

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
one more topic to comment: > Also: you call [progress setHidden:NO] every time that the timer fires. > This may prove inefficient later on, so I'd simply leave it unhidden. real code is a bit more complex: if user changed some parameters, I start the "big calculation" and show the progress bar. Am

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> I apologize for not being able to offer an "Ah-ha!!!" sort of solution > immediately, and also for this very long e-mail. I don't know if my > suggestions will help, but they may at least lead to cleaner code, and may > perhaps solve your problems. If I may... Thanks for your suggestions, but

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Andrew Merenbach
Hi, there, I apologize for not being able to offer an "Ah-ha!!!" sort of solution immediately, and also for this very long e-mail. I don't know if my suggestions will help, but they may at least lead to cleaner code, and may perhaps solve your problems. If I may... First, you may wish t

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> It is working fine for me using Mac OS X 10.5 and Mac OS X 10.4 when > compiled with Xcode 2.5 against the 10.4u SDK (not tried any other > version of Xcode or SDK). just installed XCode 2.5 and tried the demo project - result is the same, progress freezes. I have a slow computer, maybe the reas

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> Well on my 8th or so try on a 10.4 system I got it to do something > like what I think you are reporting. If you double-click launch the > application and do NOT move the mouse, click the mouse button, or > press any key on the keyboard the progress UI will not start moving. > As soon as you gene

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Shawn Erickson
On Tue, May 20, 2008 at 2:06 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> wrote: >> It is working fine for me using Mac OS X 10.5 and Mac OS X 10.4 when >> compiled with Xcode 2.5 against the 10.4u SDK (not tried any other >> version of Xcode or SDK). > > well, it seems that I know what my mac will d

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> It is working fine for me using Mac OS X 10.5 and Mac OS X 10.4 when > compiled with Xcode 2.5 against the 10.4u SDK (not tried any other > version of Xcode or SDK). well, it seems that I know what my mac will download tonight ;) thanks for testing, I'll try to download and install 2.5 _

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Shawn Erickson
On Tue, May 20, 2008 at 1:59 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> wrote: >> If you send your progress view a setUsesThreadedAnimation: message >> with a value of YES do it continue to animate? > > Just tried to send this message in my test project - it doesn't animate. > I removed almost all

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> What version of Mac OS X are you running? What version of Xcode are you > using? Mac OS X 10.4.11 (running at G4) XCode 2.0 (IDE - 514, Core - 515, ToolSupport - 514) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Shawn Erickson
On Tue, May 20, 2008 at 1:54 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> wrote: > Ideas? What version of Mac OS X are you running? What version of Xcode are you using? -Shawn ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> If you send your progress view a setUsesThreadedAnimation: message > with a value of YES do it continue to animate? Just tried to send this message in my test project - it doesn't animate. I removed almost all code, including all my C++ code. Finally it takes about 10 lines to hang a progress ;)

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Shawn Erickson
On Mon, May 19, 2008 at 11:53 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> wrote: > Hello > I work on Cocoa application that uses posix thread to perform big > calculations. I need to display the progress. Big caculations are done > with C++ and I have a callback function that called by the calculati

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
http://www.appsforlife.com/progress.zip (36Kb) Idea is simple: - (void) awakeFromNib { [progress setHidden:YES]; timer = [NSTimer init.]; } - (void) onTimer: (id) timer { [progress setDoubleValue:...]; [progress setHidden:NO]; // once or every timer cycle - doesn't matter (in real

Fwd: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> Does this comment mean that you're currently calling -setDoubleValue: from a > background thread? That's, AFAIK, not supported. You need to change this, No, -setDobuleValue called from the main thread. My first idea was that NSTimer creates another thread, but after NSLog(@"thread = %@", [NSThre

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread j o a r
On May 19, 2008, at 11:53 PM, Vitaly Ovchinnikov wrote: I tried to move progress update from timer to selector that was called by performSelectorFromMainThread - doesn't help too. Does this comment mean that you're currently calling -setDoubleValue: from a background thread? That's, AFAIK,

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Jens Alfke
That's a very strange problem. Ordinarily, even if the main thread were hung, the progress bar would still show its animation (that's done on the "UI heartbeat thread".) And the way it updates when you click implies something's messed up with window-redraw behavior. My first guess is that y

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Matt Long
I recently wrote a blog post with a demo xcode project that shows an implementation of updating a progress indicator for file copy. You can see it here: http://www.cimgf.com/2008/05/03/cocoa-tutorial-file-copy-with-progress-indicator/ It's a lowest common denominator example, so it might give

Problem with updating NSProgressIndicator

2008-05-19 Thread Vitaly Ovchinnikov
Hello I work on Cocoa application that uses posix thread to perform big calculations. I need to display the progress. Big caculations are done with C++ and I have a callback function that called by the calculating thread with the current progress (structure with data). I put this structures to the