• 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: Modifying the clip view before scrolling.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modifying the clip view before scrolling.


  • Subject: Re: Modifying the clip view before scrolling.
  • From: Cathy Shive <email@hidden>
  • Date: Wed, 2 Apr 2008 11:29:14 +0200

Hi Peter,

NSScroller has the following methods that might help:

- (void)trackKnob:(NSEvent *)theEvent



- (void)trackScrollButtons:(NSEvent *)theEvent




I've never subclassed NSScroller, so can't comment on the havoc that may ensue if you go down this path.



NSClipView also receives a notification when the document view changes its frame during a scroll:


-(void)viewFrameChanged:(NSNotification *)notification;

This is the method I use to do things *during* a scroll.

Best,
Cathy

On Apr 2, 2008, at 10:25 AM, Peter Zegelin wrote:

I have a custom view inside a scrollview and need to modify the clip view before a user begins to scroll as I have some custom rulers built into my view. Is there any way of being notified when a user is about to scroll? I tried overriding the mousedown of the scrollview but was only able to trap a mousedown in the bottom right corner, not in the scrollbars themselves.

thanks!

Peter
_______________________________________________

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

_______________________________________________

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: 
 >Modifying the clip view before scrolling. (From: Peter Zegelin <email@hidden>)

  • Prev by Date: Re: Untitled NSPersistentDocument has no persistent store
  • Next by Date: Re: Untitled NSPersistentDocument has no persistent store
  • Previous by thread: Re: Modifying the clip view before scrolling.
  • Next by thread: Untitled NSPersistentDocument has no persistent store
  • Index(es):
    • Date
    • Thread