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

Re: NSScroller


  • Subject: Re: NSScroller
  • From: Graham Cox <email@hidden>
  • Date: Fri, 8 Jan 2010 15:04:21 +1100

On 08/01/2010, at 2:52 PM, David Blanton wrote:

> Is there an 'easy' way to get NSScroller  events in an NSDocument app?
>
> I would like to know where the knob is.


The knob's position is just the -floatValue (or -intValue) of the scroller control.

What are you trying to do? NSDocument is not part of the 'view' layer of MVC so it's unclear how the two are related. If you want to send an action in response to a scroller just hook it up to an action method. However, scrollers are not a good control to use when you really mean e.g. a slider.

--Graham

_______________________________________________

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: NSScroller
      • From: David Blanton <email@hidden>
References: 
 >NSScroller (From: David Blanton <email@hidden>)

  • Prev by Date: NSScroller
  • Next by Date: Re: Why do bindings make my image disabled?
  • Previous by thread: NSScroller
  • Next by thread: Re: NSScroller
  • Index(es):
    • Date
    • Thread