Re: NSTableView and confused Drag&Drop
Re: NSTableView and confused Drag&Drop
- Subject: Re: NSTableView and confused Drag&Drop
- From: Olivier Destrebecq <email@hidden>
- Date: Thu, 12 Feb 2004 09:03:43 -0500
if you don't create the archive on the drag but on on the drop, then
search the archive for promised drag from NSTAbleview
Olivier
On Feb 11, 2004, at 11:17 AM, Roberto Sobachi wrote:
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.
_______________________________________________
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.