• 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: NSBrowser/NSMatrix as drag-and-drop source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBrowser/NSMatrix as drag-and-drop source


  • Subject: Re: NSBrowser/NSMatrix as drag-and-drop source
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 26 May 2005 15:56:33 -0600


On May 26, 2005, at 3:47 PM, Kevin Dorne wrote:

Following an example posted December 2003, I've added mouseDown and mouseDragged methods to MyMatrix. The issue is that if I have the mouseDown method as below, I can't select multiple cells, but dragging works. If I just have the mouseDragged method, I can select multiple cells, but dragging doesn't work.

Is the code below correct, or am I going about this wrong?

The code is correct, but it's incomplete. You need to add code to - mouseDown: to catch the case where the user is holding down Shift or Command when clicking, and if this is detected, then you need to manually extend the selection.


Nick Zitzmann
<http://www.chronosnet.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
  • Follow-Ups:
    • Re: NSBrowser/NSMatrix as drag-and-drop source
      • From: Kevin Dorne <email@hidden>
References: 
 >NSBrowser/NSMatrix as drag-and-drop source (From: Kevin Dorne <email@hidden>)

  • Prev by Date: NSBrowser/NSMatrix as drag-and-drop source
  • Next by Date: NSTextView insertText & undo
  • Previous by thread: NSBrowser/NSMatrix as drag-and-drop source
  • Next by thread: Re: NSBrowser/NSMatrix as drag-and-drop source
  • Index(es):
    • Date
    • Thread