• 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 between 2 NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag between 2 NSTableView?


  • Subject: Drag between 2 NSTableView?
  • From: Todd Freese <email@hidden>
  • Date: Thu, 24 Aug 2006 19:23:49 -0500

I am trying setup drag & drop between two NSTableViews. I am getting - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender calls when the mouse enters the destination NSTableView. But I am not sure how I would figure out which row they dropped on. Both NSTableViews are bound to array controllers.

Also, I thought that the destination NSTableView would call:

-(NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row proposedDropOperation: (NSTableViewDropOperation)op

- or -

-(BOOL)tableView:(NSTableView *)aTableView acceptDrop:(id <NSDraggingInfo>)info row:(int)row dropOperation: (NSTableViewDropOperation)operation

but it does not.

Am I missing something here. I could not find any archived messages for this.

I tried subclassing NSTableView and override:

- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
{
    return NSDragOperationCopy;
}

but it does not help.

Thanks,

Todd Freese
The Filmworkers Club
_______________________________________________
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: Drag between 2 NSTableView?
      • From: Colin Doncaster <email@hidden>
  • Prev by Date: Re: NSSQLiteStoreType and remove (REPOST)
  • Next by Date: NSToolbar Delegates not implemented?
  • Previous by thread: Re: Another user defaults question
  • Next by thread: Re: Drag between 2 NSTableView?
  • Index(es):
    • Date
    • Thread