Re: Where do these come from...
Re: Where do these come from...
- Subject: Re: Where do these come from...
- From: Charlie Dickman <email@hidden>
- Date: Wed, 15 Aug 2012 23:39:47 -0400
I DO NOT call drawRect directly. I DO call [self setNeedsDisplay: YES] to keep things going. All drawing is done from inside drawRect which has been invoked through the use of [self setNeedsDisplay: YES],
On Aug 15, 2012, at 11:19 PM, Stephen J. Butler wrote:
> On Wed, Aug 15, 2012 at 10:02 PM, Charlie Dickman <email@hidden> wrote:
>> Here's the whole method... it is being called from within a view's drawRect method...
>
> Are you calling drawRect directly from your code? If so, don't do
> that. You should be sending one of the setNeedsDisplay messages, and
> letting AppKit call drawRect for you.
>
> With AppKit calling drawRect your lockFocus messages should not be needed.
Charlie Dickman
email@hidden
_______________________________________________
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