• 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: Getting multiple sliders to interact in an NSMartix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting multiple sliders to interact in an NSMartix


  • Subject: Re: Getting multiple sliders to interact in an NSMartix
  • From: Alexander Schutte <email@hidden>
  • Date: Fri, 24 Jan 2003 16:51:12 +0100

So if i get ir Right, SliderAction: is a action of an custom class of NSMatrix say sliderMatrix,
how then does sliderMatrix know which slider is which aka how do you set the ne value for the second slider if the first changes. I don't seem to find a way to get names into the NSMatrix cells.
On vrijdag, jan 24, 2003, at 15:42 Europe/Amsterdam, j o a r wrote:

What about something like this where you have two sliders connected to the same action:

- (IBAction) sliderAction:(id) sender
{
int newValue = [sender intValue];

[sliderOne setIntValue: ((sender == sliderOne) ? newValue : (100 - newValue))
[sliderTwo setIntValue: ((sender == sliderTwo) ? newValue : (100 - newValue))
}

j o a r

On Friday, Jan 24, 2003, at 14:40 Europe/Stockholm, Alexander Schutte wrote:

for some time i am trying to get a set of liders to inteact with each other, thus making a new control.

what i want to do is to get 2 or more sliders to add up their value and not let the total surpass 100%
while each slider has a scale from 0% to 100%.

I want to use the sliders to get a use to choose an allocation from the slides.
Since it would be best to create new object to do as a subclass of NSMatrix i
tried to get this to work bu i cant get the values of the separate sliders to interact.

I did the same thing in flash mx (javascript) but i want this to be an real cocoa app.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting multiple sliders to interact in an NSMartix
      • From: j o a r <email@hidden>
References: 
 >Re: Getting multiple sliders to interact in an NSMartix (From: j o a r <email@hidden>)

  • Prev by Date: Re: Getting Image from Web and Displaying it problem
  • Next by Date: Re: Getting multiple sliders to interact in an NSMartix
  • Previous by thread: Re: Getting multiple sliders to interact in an NSMartix
  • Next by thread: Re: Getting multiple sliders to interact in an NSMartix
  • Index(es):
    • Date
    • Thread