• 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 and confused Drag&Drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView and confused Drag&Drop


  • Subject: NSTableView and confused Drag&Drop
  • From: Roberto Sobachi <email@hidden>
  • Date: Wed, 11 Feb 2004 17:17:53 +0100

I serched in all cocoa mailing list archive, but all examples,
documentation and other are too confused.

I've implemented the Drag from NSTableView to external resources, but I
can create only a pasteboard document.

How can I create in the location where I drop, a binary archive (the
same I can create with [plistData writeToFile:path atomically:YES];?

My code now is:

//DragOver NSTableVIEW
- (BOOL)tableView:(NSTableView *)tableView writeRows:(NSArray*)rows
toPasteboard:(NSPasteboard*)pboard
{
[pboard declareTypes:[NSArray arrayWithObjects: NSStringPboardType,
nil] owner:nil];
[pboard setString:@"document" forType:NSStringPboardType];

return YES;
}





Roberto Sobachi
developer
http://www.xidiar.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTableView and confused Drag&Drop
      • From: Olivier Destrebecq <email@hidden>
  • Prev by Date: Re: Flash animation
  • Next by Date: Re: What's wrong with ToolbarItem setLabel?
  • Previous by thread: Re: objc_msgSend in Codewarrior???
  • Next by thread: Re: NSTableView and confused Drag&Drop
  • Index(es):
    • Date
    • Thread