NSTableView and confused Drag&Drop
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.