• 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: Dragging to table view without indicator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging to table view without indicator


  • Subject: Re: Dragging to table view without indicator
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 27 Jan 2003 13:10:41 +0100

On Sunday, January 26, 2003, at 11:37 PM, Andrew Merenbach wrote:

I would like to accept various drops on my table view, but would rather that the entire table view become outlined, rather than an indicator bar be drawn, to signal that a drop can occur, as the dropped data would not be inserted at the particular location indicated by the bar. What will I need to do to make this happen?

I'm afraid I have an easier solution than the ones having been proposed. In your Table Source:

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

types = [[info draggingPasteboard] types];

if ([types containsObject:NSStringPboardType]) // Change this line if you need
{
[tv setDropRow:-1 dropOperation:NSTableViewDropOn];

return NSDragOperationCopy;
}

return NSDragOperationNone;
}
_______________________________________________
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.

References: 
 >Dragging to table view without indicator (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: simple button with picture
  • Next by Date: open window another class (newbie)
  • Previous by thread: Re: Dragging to table view without indicator
  • Next by thread: stuffing characters
  • Index(es):
    • Date
    • Thread