• 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: "Anish Kumar" <email@hidden>
  • Date: Fri, 25 Aug 2006 13:36:53 +0530
  • Thread-topic: Problem in scrolling a window.

Hi Anoop,

Have you tried

NSScrollView *enclosingScrollView = [self enclosingScrollView];
            [enclosingScrollView  scrollPoint:NSMakePoint(100.0,100.0)];
            [enclosingScrollView  setAutoresizesSubviews:YES];
            [enclosingScrollView display];


Using "display" will redraw instantaneously than "setNeedsDisplay" which puts
the view to be redrawn in the next event loop.

Hope this helps....

Regards,
-Anish

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2369 bytes
Desc: not available
Url :
http://lists.apple.com/pipermail/cocoa-dev/attachments/20060824/f5d6e876/smim
e.bin

------------------------------

Message: 11
Date: Thu, 24 Aug 2006 20:17:03 +0530
From: Anoop <email@hidden>
Subject: Problem in scrolling a window.
To: "email@hidden" <email@hidden>
Message-ID: <C113B9BF.816%email@hidden>
Content-Type: text/plain;	charset="US-ASCII"


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





------------------------------

Message: 12
Date: Thu, 24 Aug 2006 10:57:40 -0400
From: "I. Savant" <email@hidden>
Subject: Re: Problem in scrolling a window.
To: Anoop <email@hidden>
Cc: "email@hidden" <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes;
	format=flowed


   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

  • Prev by Date: Re: NSSQLiteStoreType and remove (REPOST)
  • Next by Date: dataFromFile
  • Previous by thread: Re: Problem in scrolling a window.
  • Next by thread: Re: Problem in scrolling a window.
  • Index(es):
    • Date
    • Thread