English 中文(简体)
如何操纵台式文档或文件夹在澳门的位置?
原标题:How to manipulate the location of desktop files or folders on a Mac?

是否有办法将台式fold或台式的档案在台上移至台上另一地点?

最佳回答
问题回答

使用NSFileManager。

NSFileManager *manager = [NSFileManager defaultManager];
[manager moveItemAtURL:oldURL toURL:newURL error:error];

确保正确处理错误。





相关问题
Capture desktop without my window

I want to create a recording of desktop content, but without a certain window. The role of this window is to provide a text that will be read, while recording desktop changes. Any suggestions?

Logout from an desktop application to change user in C#.net

I have designed an desktop application using C#.net that has many users. Each USer has specific rights. The User logs into the system when the application first starts and the UserID number is stored ...

Programmatically take ScreenShot of Desktop in Ruby?

I asked this question about taking a picture of a webpage programmatically, and I ve downloaded and got webkit2png working (taking pictures of HTML pages like blogs and whatnot). So cool, thanks for ...

热门标签