Re: [SOLVED] progress indicator strange partial overlay
Re: [SOLVED] progress indicator strange partial overlay
- Subject: Re: [SOLVED] progress indicator strange partial overlay
- From: Nick Rogers <email@hidden>
- Date: Sun, 16 Feb 2014 12:24:30 +0530
Hi,
I added -isOpaque to return YES to both the overlapping custom view and even sub-classed progress bar and set them to return -isOpaque as YES.
Although the problem is not there when progressing, but at the end when a alert panel comes to from and progress bar returns to 0.0, the same patch is there although this time grey.
So still relying on the dirtyRect checking way to solve this.
Best,
Nick
On 16-Feb-2014, at 11:39 am, Graham Cox <email@hidden> wrote:
>
> On 16 Feb 2014, at 4:36 am, Nick Rogers <email@hidden> wrote:
>
>> The about last 30% of the length of the progress bar was passed onto the drawRect: of the blue background custom view as dirtyRect.
>> Wonder what causes it.
>
> Probably because neither the progress view or your other view returns YES from -isOpaque, therefore when the progress invalidates its dirty rect is also passed to the views behind it. Not sure why it's just that end portion though, I would have expected the dirty rect to at least include the end of the filled progress bar.
>
> --Graham
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden