• 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: NSStepper - useless?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStepper - useless?


  • Subject: Re: NSStepper - useless?
  • From: John Joyce <email@hidden>
  • Date: Wed, 22 Feb 2012 20:48:00 -0600

On Feb 19, 2012, at 6:11 PM, William Squires wrote:

> Okay, 'nuther dumb question. How do I hook the different arrows in an NSStepper to actions in my view controller? Or how do I ask (id)sender which arrow was clicked?
>
Remember that classes tend to inherit from superclasses.
Not checking superclasses will get you every time with AppKit.
Try AppKiDo for a great tool that makes it really really easy to see all of the documented methods a class responds to at once, including its inherited methods.

In this case NSControl has your answer.

If what you are really after is a vertical segmented button, you can create that easily.

In this case, you will get a zero or a 1.

A simple conditional statement will get you where you probably want to go with this.


On a side note, please consider your post titles more thoughtfully.
2 reasons:
1) Many users search the archives, often via google.
2) Thoughtless titles like "it doesn't work" often get ignored by some of the most insightful and active people on the mailing list.
_______________________________________________

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


References: 
 >NSStepper - useless? (From: William Squires <email@hidden>)

  • Prev by Date: Re: NSTextView and -becomeFirstResponder
  • Next by Date: iCal Integration
  • Previous by thread: Re: NSStepper - useless?
  • Next by thread: NSTextView and -becomeFirstResponder
  • Index(es):
    • Date
    • Thread