• 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: Problem in scrolling a window.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Problem in scrolling a window. (From: Anoop <email@hidden>)

  • Prev by Date: Problem in scrolling a window.
  • Next by Date: Printing A4 images at 300dpi
  • Previous by thread: Problem in scrolling a window.
  • Next by thread: RE: Problem in scrolling a window.
  • Index(es):
    • Date
    • Thread