• 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: Smooth scrolling during NSTableView drop operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smooth scrolling during NSTableView drop operation


  • Subject: Re: Smooth scrolling during NSTableView drop operation
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Sun, 9 May 2004 17:00:49 -0700

Hello...

Does NSTableView normally use autoscroll: to scroll the view when you are dragging an item and verticalMotionCanBeginDrag is set to YES? (I would guess that it should, but haven't tested it)

If it does, then you might be able to do your overriding in the autoscroll: method instead so that you don't interfere with the normal NSTableView implementation of mouseDown: and drag and drop would work normally.

Just a thought,

Louis

My second question for the day that I've spent the better part of the day struggling with:

I'd like to be able to use the same smooth scrolling that already happens when you do a vertical drag in a tableview and verticalMotionCanBeginDrag is NO. What happens is that only when you move outside the scrollview's bounds does scrolling occur -- and the amount of scrolling is based on the distance outside the scrollview.

When you do the same vertical motion with verticalMotionCanBeginDrag set to YES, the scrollview starts scrolling spastically as soon as you get near the edge of the bounds of the scrollview.

I've overridden mouseDown: as follows and the smooth scrolling _does_ work.

- (void)mouseDown:(NSEvent *)theEvent {
...
}

For selection, I can set this up manually with selectRow:byExtendingSelection:, but I don't quite understand how I can get normal tableview drag and drop behavior to also work.

- cricket
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Smooth scrolling during NSTableView drop operation
      • From: cricket <email@hidden>
References: 
 >Smooth scrolling during NSTableView drop operation (From: cricket <email@hidden>)

  • Prev by Date: Re: Callbacks, GUI updates and threading
  • Next by Date: Re: Smooth scrolling during NSTableView drop operation
  • Previous by thread: Smooth scrolling during NSTableView drop operation
  • Next by thread: Re: Smooth scrolling during NSTableView drop operation
  • Index(es):
    • Date
    • Thread