• 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: Drag and drop single cell in a table/matrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and drop single cell in a table/matrix


  • Subject: Re: Drag and drop single cell in a table/matrix
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 28 Feb 2008 14:19:54 -0800

Override:

- (NSImage *)dragImageForRowsWithIndexes:(NSIndexSet *)dragRows tableColumns:(NSArray *)tableColumns event:(NSEvent*)dragEvent offset: (NSPointPointer)dragImageOffset

limit the columns passed based on the column at the event's location. The rest is up to your delegate/datasource methods.

corbin

On Feb 28, 2008, at 2:14 PM, Dan Waltin wrote:
Hi all,

The short question is: how do I drag'n'drop single cells in an NSTableView (or NSOutlineView). I.e. I don't want the entire row to be dragged, just one cell.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Drag and drop single cell in a table/matrix (From: Dan Waltin <email@hidden>)

  • Prev by Date: Re: Drawing from secondary thread erases resize corner in window?
  • Next by Date: Does performSelectorOnMainThread: preserve order?
  • Previous by thread: Drag and drop single cell in a table/matrix
  • Next by thread: Does performSelectorOnMainThread: preserve order?
  • Index(es):
    • Date
    • Thread