Dragging examples?
Dragging examples?
- Subject: Dragging examples?
- From: "Mark's Studio" <email@hidden>
- Date: Tue, 16 Oct 2001 10:18:44 +0200
I want to be able to also make a file with the contents of the
makeDragString when i drag to the finder,
how do i do that, i could not find much information on dragging so an
example would be good.
- (BOOL)tableView:(NSTableView *)tv writeRows:(NSArray*)rows
toPasteboard:(NSPasteboard*)pboard
{
[pboard declareTypes:[NSArray
arrayWithObjects:NSFilenamesPboardType,NSStringPboardType, nil]
owner:self];
[pboard set
Data:[NSData data] forType:NSStringPboardType];
[pboard setPropertyList:[self makeDragString]
forType:NSStringPboardType];
return YES;
}
Thanks
Peter Mark
Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden