• 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: David Blanton <email@hidden>
  • Date: Thu, 7 Jan 2010 21:21:56 -0700

I mentioned NSDocument app simce that is where I am and the content is contained in a scroll view.

I wan to send to my model code that the user scrolled the view and I want to know by how much.

So, I thought I would implement trackKnob but I don't know how ....


On Jan 7, 2010, at 9:04 PM, Graham Cox wrote:


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

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