Re: drawRect not getting called when needed under OS X
Re: drawRect not getting called when needed under OS X
- Subject: Re: drawRect not getting called when needed under OS X
- From: Jens Alfke <email@hidden>
- Date: Sat, 23 Jul 2011 23:32:15 -0700
On Jul 23, 2011, at 9:33 PM, Tom Jeffries wrote:
> The code in the graphics module that displays the window
> is working perfectly, but somehow drawRect never gets called after it is
> called during initialization.
Are you certain it never gets called? Put an NSLog(@“drawRect!”); call into the drawRect: method and see if that message gets logged when you expect or not.
Put a breakpoint in the button’s action method and see whether that gets called. Check the value of the variable you call setNeedsDisplay: on — if it’s nil, nothing will happen.
—Jens_______________________________________________
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