• 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 called back when an NSScrollView is scrolled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting called back when an NSScrollView is scrolled


  • Subject: Re: Getting called back when an NSScrollView is scrolled
  • From: John Stiles <email@hidden>
  • Date: Mon, 28 Jan 2008 11:39:20 -0800

Hamish Allan wrote:
On Jan 28, 2008 6:17 PM, John Stiles <email@hidden> wrote:
It looks like this technique relies on bounds-changed notifications,
which is not quite the same thing as user-initiated scrolling.
Wouldn't you want the two views to stay synchronised when the bounds change?
Sure, but that is actually handled already. I think you're missing the bigger point. I'm trying to implement a feature in shared code, which is already spec'ed out and working on other platforms, for "call this callback when the user scrolls the view." I can either punt and say "sorry, the Mac can't do that," or I can implement it. I'd prefer to implement as much as I can to keep as much code shared as possible. Having as much functionality in shared code as possible reduces bugs dramatically.

Certainly I think it's reasonable to want to know when the user is scrolling a view.

Fortunately replacing the target/action and overriding -scrollWheel: works like a charm. It's not ideal but it will have to do, unless someone has a better idea :)

_______________________________________________

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: Getting called back when an NSScrollView is scrolled
      • From: "Hamish Allan" <email@hidden>
References: 
 >Running process as root from Cocoa (From: "Mitchell Hashimoto" <email@hidden>)
 >Re: Running process as root from Cocoa (From: "Hamish Allan" <email@hidden>)
 >Getting called back when an NSScrollView is scrolled (From: John Stiles <email@hidden>)
 >Re: Getting called back when an NSScrollView is scrolled (From: "Kyle Sluder" <email@hidden>)
 >Re: Getting called back when an NSScrollView is scrolled (From: John Stiles <email@hidden>)
 >Re: Getting called back when an NSScrollView is scrolled (From: j o a r <email@hidden>)
 >Re: Getting called back when an NSScrollView is scrolled (From: John Stiles <email@hidden>)
 >Re: Getting called back when an NSScrollView is scrolled (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: Getting called back when an NSScrollView is scrolled
  • Next by Date: Re: The mouse is where, again?
  • Previous by thread: Re: Getting called back when an NSScrollView is scrolled
  • Next by thread: Re: Getting called back when an NSScrollView is scrolled
  • Index(es):
    • Date
    • Thread