Re: Any way to Rename a File that is being Dragged before it's Dropped?
Re: Any way to Rename a File that is being Dragged before it's Dropped?
- Subject: Re: Any way to Rename a File that is being Dragged before it's Dropped?
- From: "email@hidden" <email@hidden>
- Date: Sat, 09 Jan 2016 22:16:40 -0500
Thanks Jens, I will head that way.
Rob
> On Jan 9, 2016, at 7:26 PM, Jens Alfke <email@hidden> wrote:
>
>
>> On Jan 9, 2016, at 2:08 PM, email@hidden wrote:
>>
>> Is there any way to cut out this ’staging’ folder? To somehow Drag a file named: ‘0012345.m4a’ from the server (mounted via AFP) directly onto the Desktop, or an app like Logic, and have it Dropped with a name like: ‘aaa bbb ccc ddd.m4a’?
>
> Sure — in general it’s possible to let the user drag a file that doesn’t exist yet, then create the file in the dropped-on folder. The drag data you provide isn’t a regular file flavor, but a special thing called a “file promise” or “HFS promise” that specifies what type of file it will be; then on drop you get the location to write the file to. The Cocoa docs should have more info.
>
> —Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden