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 <3tothe...@comcast.net> > 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 3tothe...@comcast.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com