• 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 between two table views.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and drop between two table views.


  • Subject: Re: Drag and drop between two table views.
  • From: Graham Cox <email@hidden>
  • Date: Thu, 28 Oct 2010 10:59:25 +1100

Another thing.

You should also implement:

- (NSDragOperation)tableView:(NSTableView *)aTableView validateDrop:(id <NSDraggingInfo >)info proposedRow:(NSInteger)rowproposedDropOperation:(NSTableViewDropOperation)operation

This should check whether 'BFDragPasteboardType' is actually present on the pasteboard, using the pb method -availableTypeFromArray: and return NSDragOperationCopy if it's there, and NSDragOperationNone otherwise.

Look up "Drag and Drop in Tables" in the "Tableview Programming Guide". It tells you all you need to know.

--Graham


_______________________________________________

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

  • Follow-Ups:
    • Re: Drag and drop between two table views.
      • From: Paul Johnson <email@hidden>
References: 
 >Drag and drop between two table views. (From: Paul Johnson <email@hidden>)
 >Re: Drag and drop between two table views. (From: Graham Cox <email@hidden>)
 >Re: Drag and drop between two table views. (From: Paul Johnson <email@hidden>)
 >Re: Drag and drop between two table views. (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSFileManager and Resource Forks
  • Next by Date: Re: Handle drop to WebView: WebDragDestinationActionDHTML
  • Previous by thread: Re: Drag and drop between two table views.
  • Next by thread: Re: Drag and drop between two table views.
  • Index(es):
    • Date
    • Thread