• 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: setting the increment of all steppers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: setting the increment of all steppers


  • Subject: RE: setting the increment of all steppers
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Tue, 21 Oct 2003 14:43:51 -0400

> I have some code that registers if the option key is pressed and
> released.
> when the option key is down I want to set All the steppers to 10 when
> it is released set them all to 1.
>
> is there a easy way to change all of the steppers at once.

Put the steppers in an NSArray and tell the array:

[stepperArray makeObjectsPerformSelector:@selector(setObjectValue:)
withObject:[NSNumber numberWithInt:10]];

Jonathan
_______________________________________________
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.

References: 
 >setting the increment of all steppers (From: Jeff Childers <email@hidden>)

  • Prev by Date: Re: Terminating a task
  • Next by Date: NSTask and Notification?
  • Previous by thread: Re: setting the increment of all steppers
  • Next by thread: Re: setting the increment of all steppers
  • Index(es):
    • Date
    • Thread