Cocoa/Objective-C Question

Discussion in 'Mac Programming' started by infernooo, Oct 14, 2005.

  1. macrumors newbie

    Joined:
    Oct 14, 2005
    #1
    Hi everyone,

    Firstly I wanted to say thank you to all the contributors who have provided good advice for myself and others to use, while some people might not be thankful, I assure you that there are many of us out there who really do appreciate the help given.

    I have written a small cocoa app which is basically just a simple user interface. It consists of a window with shapes that you can draw inside it. It also has scrollbars for when the background (or image) is smaller than the window itself. The problem I am having is that when I click and drag a shape (to move it), it does not automatically scroll (for example, if I click inside the shape and drag the mouse down below the bottom of the window, it will not scroll down as I would like it to).

    Any help would be greatly appreciated.

    p.s. I have googled all over the place for this but the closest thing I have found is grab-scrolling code on this page: http://iratescotsman.com/products/source/)

    Thanks!
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Basically I think you have to implement it yourself. The source you linked to is probably a good place to start!
     
  3. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #3
    From Borkware (http://borkware.com/quickies/one?topic=NSView)
     
  4. thread starter macrumors newbie

    Joined:
    Oct 14, 2005
    #4
    Thanks everyone - I will give it a try!
     

Share This Page