Re: Redrawing in a custom NSView.
Re: Redrawing in a custom NSView.
- Subject: Re: Redrawing in a custom NSView.
- From: j o a r <email@hidden>
- Date: Sat, 20 Jan 2007 19:03:12 +0100
On Jan 20, 2007, at 6:49 PM, Manuel C. wrote:
All works fine and have the window with the fancy chape in my
screen, but when I change the number of sides and enter to the
method dibujar:num, and set [self setNeedsDisplay: YES]; the fancy
draw not change.
What need to do for the event loop calls the drawRect: method.
Have you verified, using the debugger or printf/NSLog statements,
that your methods are called, and that your state is updated, as
expected?
It seems strange that your "numeroDeLados" variable is a static
variable. From how it's used, it seems more suitable to be an
instance variable?
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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