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 19:32:03 +0100
On 10. Sep 2007, at 19:09, I. Savant wrote:
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.
There is not enough information to give you much help. Post your
code.
ok, here is one of the action methods. the other 2 are exactly the
same, except they are assigned to the other 2 sliders, and the name
of the variable is different. all 3 variables are declared as double
in the top of the implementation file.
- (IBAction)setDec:(id)sender {
viewDec = (double) [sender floatValue]; // this line works perfectly
[self setNeedsDisplay:YES]; //this one is executed but has no
visible effect at all.
[self display]; //same here
}
the header file declares the outlets in the following format:
IBOutlet NSSlider *DecSlider;
erm, do I NEED those outlets? or is it enough to call [sender
floatValue]? gotta try that...
--
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