Re: redraw problem
Re: redraw problem
- Subject: Re: redraw problem
- From: Tony Romano <email@hidden>
- Date: Thu, 29 Jul 2010 16:30:28 -0700
Moved the code to here. http://dl.dropbox.com/u/5614061/snippet.txt
The drawRect redraws the entire view. So, in a sense, I am drawing over everything in that view. What's interesting, is the lines are left from the first time I adjust the blue lines, any additional adjustments to the blue line don't leave any residuals.
Changing the setLineWidth prior to any drawing doesn't have any affect on the problem. Didn't think it would as I understand the "attributes" are not applied until the stroke happens. I'll look into Quartz debug.
On Jul 29, 2010, at 3:54 PM, Tony Romano wrote:
> The drawRect redraws the entire view. So, in a sense, I am drawing over everything in that view. What's interesting, is the lines are left from the first time I adjust the blue lines, any additional adjustments to the blue line don't leave any residuals.
>
> Changing the setLineWidth prior to any drawing doesn't have any affect on the problem. Didn't think it would as I understand the "attributes" are not applied until the stroke happens. I'll look into Quartz debug.
>
> -Tony
>
> On Jul 29, 2010, at 2:48 PM, Michael Dautermann wrote:
>
>> Here's something else I noticed in your code.
>>
>> You set the stroke width near the bottom of the drawGrid function, which happens AFTER you do the first draw of the lines. Try moving the setLineWidth method call up to the top of your drawGrid and see if that makes any difference.
>>
>> On Jul 29, 2010, at 2:01 PM, Tony Romano wrote:
>>
>>> The drawRect redraws the entire view. So, in a sense, I am drawing over everything in that view. What's interesting, is the lines are left from the first time I adjust the blue lines, any additional adjustments to the blue line don't leave any residuals.
>>>
>>> -Tony
>>>>
-Tony
_______________________________________________
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