• 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: Anoop <email@hidden>
  • Date: Fri, 25 Aug 2006 20:00:06 +0530

I am able to dragg it towards  one direction.(ie from initial position to
right most corner)after reaching at end corner I need to reset it gradually
so that I give the following codes on mouseDown event.



            NSPoint point = [self convertPoint:[theEvent locationInWindow]
                                fromView:nil];

            [self scrollRectToVisible:[self bounds]];
            [self  scrollPoint: point];
            [self  setAutoresizesSubviews:YES];
            [self setNeedsDisplay:YES];
What would I do for moving my scroller back with a certain amout of
decrement towards backward position.


On 8/24/06 8:49 PM, "I. Savant" <email@hidden> wrote:

>
>    What is working?
>
> --
> I.S.
>
>
> On Aug 24, 2006, at 11:14 AM, Anoop wrote:
>
>> Thanks a lot Savant,
>> Its working.
>>
>>
>> On 8/24/06 8:37 PM, "I. Savant" <email@hidden> wrote:
>>
>>>
>>>    You should post your entire mouseDown: code. scrollPoint: and
>>> scrollRectToVisible: work fine for me in my mouseDown: routines in
>>> several projects while dragging.
>>>
>>> --
>>> I.S.
>>>
>>>
>>> On Aug 24, 2006, at 10:57 AM, Anoop wrote:
>>>
>>>> Thanks Svant
>>>> I used it but it will work only when we click over scroller.I need
>>>> to scroll
>>>> my scoller when I am clicking or dragging my view.
>>>>
>>>>
>>>> On 8/24/06 8:27 PM, "I. Savant" <email@hidden> wrote:
>>>>
>>>>>
>>>>>    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
>>>>>
>>>>
>>>> --
>>>> With Regards,
>>>>              Anoop
>>>> <www.metaoption.com>
>>>>
>>>>
>>>
>>
>> --
>> With Regards,
>>              Anoop
>> <www.metaoption.com>
>>
>>
>

--
With Regards,
             Anoop
<www.metaoption.com>


 _______________________________________________
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: iTunes and AppleScript
  • Next by Date: Re: import Header??
  • Previous by thread: RE: Problem in scrolling a window.
  • Next by thread: Printing A4 images at 300dpi
  • Index(es):
    • Date
    • Thread