Drag to Finder and create a file
Drag to Finder and create a file
- Subject: Drag to Finder and create a file
- From: Lorenzo <email@hidden>
- Date: Sun, 10 Apr 2005 20:46:58 +0200
Hi list,
I would like to drag an object from my app to the Finder and create my own
file with my own fileName.
I can quite succeed when I declared the type NSTIFFPboardType in the
pasterboard, but when I declare my own type it doesn't work. I cannot get
any file in the Finder. How to do that?
myTypes = [NSArray arrayWithObjects:MyPboardType, nil];
[pboard declareTypes:myTypes owner:self];
[pboard setData:someData forType:MyPboardType];
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden