• 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
NSTableView drag and drop - re-target drop to entire table?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView drag and drop - re-target drop to entire table?


  • Subject: NSTableView drag and drop - re-target drop to entire table?
  • From: Jim Correia <email@hidden>
  • Date: Wed, 1 Feb 2006 15:44:24 -0500

NSTableView lets me re-target a drop to a specific row:

/* To be used from validateDrop: if you wish to "re-target" the proposed drop. To specify a drop on the second row, one would specify row=2, and op=NSTableViewDropOn. To specify a drop below the last row, one would specify row=[tv numberOfRows], and op=NSTableViewDropAbove.
*/
- (void)setDropRow:(int)row dropOperation:(NSTableViewDropOperation)op;



What I'd like to do, however, is re-target it to the entire table (so the drop feedback is around the inside edge of the table view, not just one particular row.)


The feedback I'm looking for is similar to that when you drag items into the song list in iTunes when the Library is selected. (And for similar reasons - the list already has a prevailing sort order, and the inserted items may not all end up at a single insertion location in the destination, so the best feedback is the entire list.)

Is this possible? How?

Thanks,
Jim
_______________________________________________
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: NSTableView drag and drop - re-target drop to entire table?
      • From: Jim Correia <email@hidden>
  • Prev by Date: Using C++ iostreams for file IO in Cocoa
  • Next by Date: Re: Learning Cocoa, but no programing experience, possible?
  • Previous by thread: Q: Binding to an NSMatrix (of checkboxes)
  • Next by thread: Re: NSTableView drag and drop - re-target drop to entire table?
  • Index(es):
    • Date
    • Thread