• 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
drag and drop in nsbrowser (issues with matrix and mouseDragged)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

drag and drop in nsbrowser (issues with matrix and mouseDragged)


  • Subject: drag and drop in nsbrowser (issues with matrix and mouseDragged)
  • From: Josh Anon <email@hidden>
  • Date: Wed, 14 Aug 2002 13:16:29 -0700

So someone else asked this here before a while ago, but without a good answer, so I'll try again. I'm attempting to implement drag & drop in a browser (custom cells, doesn't represent the file system, and all that goodness), and the first thing I tried was to subclass NSBrowser and implement the code there. While that mostly worked, I could only drag from empty areas in the browser.

My next attempt has been to subclass NSMatrix, set the browser's columns to be of that type, and do the drag work in my NSMatrix subclass (subclass and not category because I'm overriding mouseDragged and adding a couple of variables to the matrix to support the drag). That's all good, but unfortunately, something is eating the mouseDragged: event (as has been mentioned here before, it seems to be the NSMatrix), as my matrix subclass gets the mouseDown: events, but not the mouseDragged:. Any ideas? Is there a better way to do drag and drop w/ a browser?

Thanks,
Josh
_______________________________________________
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.

  • Prev by Date: Re: NSRunLoop question
  • Next by Date: [TRTFM]ICMP ping using Obj-C
  • Previous by thread: setUsesUserKeyEquivalents
  • Next by thread: [TRTFM]ICMP ping using Obj-C
  • Index(es):
    • Date
    • Thread