On Aug 8, 2014, at 12:55 PM, Keary Suska <[email protected]> wrote:

> On Aug 8, 2014, at 10:25 AM, Daryle Walker <[email protected]> wrote:
> 
>> On Aug 8, 2014, at 9:58 AM, Keary Suska <[email protected]> wrote:
>> 
>>> Is the progress indicator loaded from a xib, with your initial settings? If 
>>> so I would double-check the isDisplayedWhenStopped value at or after 
>>> awakeFromNib. If the value is still NO, IIRC there has been a long-standing 
>>> bug with NSProgressIndicator in certain views. Try calling 
>>> [[self.loadingProgress superview] setNeedsDisplay:YES] after you stop 
>>> animation. If that works, that will be confirmation that the bug still 
>>> stands...
>> 
>> The bug is there, but neither yours or Jerry’s solution works!  I’ve tried:
>>      • if (![self.loadingProgress isHidden]) {
>>    [self.loadingProgress setHidden:YES];
>>    [self.loadingProgress setHidden:NO];
>> }
> 
> I guess I am not sure what you want to accomplish--here you hide it then 
> unhide it, so you are forcing it to show. Is this what you want? If so, what 
> isn;t happening that you expect?
> 
>>      • [self.loadingProgress.superview setHidden:YES];
>> [self.loadingProgress.superview setHidden:NO];
> 
> Same here.

Yes, both of these are trying to force an update.  As I said before, the bug 
isn’t that the area isn’t marked dirty, it’s that the visual-updating code 
refuses to acknowledge it.  The updating code only triggers when something 
outside the view, like the toolbar, indirectly forces a redraw.

(It does happen sometimes, just the very first time I run the program.  So the 
issue is timing-related.)

I got a solution now.  After I stop the animation, I switch the progress 
indicator from bar to circular.  That change is recognized by the updating code 
and triggers the auto-hide.  (I guess the bug is only in the bar code.)  I have 
to put a change-back to bar-style in my progress-starting notification.  The 
animation is sometimes cut short, especially during the normal cache-preserving 
reloads, but it’s livable.

— 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com 

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to