Re: scrolling mechanism question
Re: scrolling mechanism question
- Subject: Re: scrolling mechanism question
- From: John Randolph <email@hidden>
- Date: Thu, 1 Apr 2004 11:53:37 -0800
On Apr 1, 2004, at 7:54 AM, Ivan Kourtev wrote:
Hi,
This probably is a very simple question for an experienced programmer
(I've been looking for the answer but can't seem to be able to find
it).
I have a scroll view. How do I know that the user has scrolled?
Should one
(a) be examining events, or,
(b) use -(void)reflectScrolledClipView:(NSClipView *)aClipView, or,
(c) do something else?
Can any point me in the right direction? What I need to be able to
find out is that the scrollers have been moved and to where. Thanks.
Here you go:
setPostsFrameChangedNotifications:
- (void)setPostsFrameChangedNotifications:(BOOL)flag
Controls whether the receiver informs observers when its frame
rectangle changes. If flag is YES, the receiver will post notifications
to the default notification center whenever its frame rectangle
changes; if flag is NO it wont.Note that if flag is YES and frame
notifications are suppressed, when the frame change notification is
reenabled the view will immediately post a single such notification if
its frame changed during this time. This will happen even if there has
been no net change in the view's frame.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.