• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: custom view won't update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: custom view won't update
      • From: Shawn Erickson <email@hidden>
    • Re: custom view won't update
      • From: "I. Savant" <email@hidden>
References: 
 >custom view won't update (From: H M <email@hidden>)
 >Re: custom view won't update (From: Shawn Erickson <email@hidden>)
 >Re: custom view won't update (From: H M <email@hidden>)
 >Re: custom view won't update (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Bindings: is there a better way to observe when an object changes?
  • Next by Date: Re: custom view won't update
  • Previous by thread: Re: custom view won't update
  • Next by thread: Re: custom view won't update
  • Index(es):
    • Date
    • Thread