Re: Problem in scrolling a window.
Re: Problem in scrolling a window.
- Subject: Re: Problem in scrolling a window.
- From: "I. Savant" <email@hidden>
- Date: Thu, 24 Aug 2006 10:57:40 -0400
How about just:
[self scrollPoint:NSMakePoint(100,100)];
If you read the docs, scrollPoint: is a method of NSView that
"Scrolls the receiver’s closest ancestor NSClipView object so a point
in the receiver lies at the origin of the clip view's bounds
rectangle." ...
--
I.S.
On Aug 24, 2006, at 10:47 AM, Anoop wrote:
Hi All,
I am having a view with scroller want to move my scroller with mouse
movement or with mouse down .But scroller is not moving please
point out my
error.
I wrote
NSScrollView *enclosingScrollView = [self
enclosingScrollView];
[enclosingScrollView scrollPoint:NSMakePoint
(100.0,100.0)];
[enclosingScrollView setAutoresizesSubviews:YES];
[enclosingScrollView setNeedsDisplay:YES];
All suggestions are appreciated.
Thanks in Advance.
With Regards,
Anoop
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden