Re: custom view won't update
Re: custom view won't update
- Subject: Re: custom view won't update
- From: H M <email@hidden>
- Date: Mon, 10 Sep 2007 18:26:21 +0100
On 9. Sep 2007, at 3:05, Shawn Erickson wrote:
On Sep 8, 2007, at 4:50 PM, H M wrote:
hello.
I have a window with a custom view and 3 sliders. the view is
assigned to a custom class which is a subclass of NSView. when I
change the size of the window, drawRect: is called, the view
displays its stuff, no problem there. but: I want the view to
update when any one of the sliders is moved. how do I do that?
I've tried [self setNeedsDisplay], but that didn't work. I tried
[self display], but that didn't work either. so I tried both, but
the view still refuses to update when i move a slider. What am I
doing wrong?
Who is getting the action event from the slider? Is it actually
getting it? You check using the debugger?
My custom class has 3 action methods, one for each slider. yes, they
get called, and the variables are set. after that, [self
setNeedsDisplay:YES] and [self display] are executed, but they don't
have any effect.
--
GPG Key ID: 92AD877F7E4E32B9
Fingerprint: 16B0 7DCD 3AB0 0C45 F5FD 581D 92AD 877F 7E4E 32B9
_______________________________________________
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