FROM : Jean-Daniel Dupas
DATE : Wed Mar 12 23:24:00 2008
Le 12 mars 08 à 23:12, Mr. Gecko a écrit :
> I was going to do that but it is not internal I used NSFileManager -
> removeFileAtPath:handler: instead
> [[NSFileManager defaultManager] removeFileAtPath:@"/folder/"
> handler:nil];
> On Mar 12, 2008, at 3:45 PM, Herr Thomas Bartelmess wrote:
>> unix command rm -r
>>
>> thomas
>> Am 12.03.2008 um 21:42 schrieb Mr.Gecko:
>>
>>> Hello I have been trying to find a way to delete a folder so when
>>> some one chooses replace in the save panel it would delete the
>>> folder before it recreates it. What is the easiest way of doing
>>> that?
>>> _______________________________________________
>>>
>>> Cocoa-dev mailing list (<email_removed>)
>>>
>>> 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:
>>> http://lists.apple.com/mailman/options/cocoa-dev/thomas.<email_removed>
>>>
>>> This email sent to thomas.<email_removed>
You can also use -[NSWorkspace
performFileOperation:source:destination:files:tag:].
Use NSWorkspaceDestroyOperation to delete it, or
NSWorkspaceRecycleOperation to move it to trash.
DATE : Wed Mar 12 23:24:00 2008
Le 12 mars 08 à 23:12, Mr. Gecko a écrit :
> I was going to do that but it is not internal I used NSFileManager -
> removeFileAtPath:handler: instead
> [[NSFileManager defaultManager] removeFileAtPath:@"/folder/"
> handler:nil];
> On Mar 12, 2008, at 3:45 PM, Herr Thomas Bartelmess wrote:
>> unix command rm -r
>>
>> thomas
>> Am 12.03.2008 um 21:42 schrieb Mr.Gecko:
>>
>>> Hello I have been trying to find a way to delete a folder so when
>>> some one chooses replace in the save panel it would delete the
>>> folder before it recreates it. What is the easiest way of doing
>>> that?
>>> _______________________________________________
>>>
>>> Cocoa-dev mailing list (<email_removed>)
>>>
>>> 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:
>>> http://lists.apple.com/mailman/options/cocoa-dev/thomas.<email_removed>
>>>
>>> This email sent to thomas.<email_removed>
You can also use -[NSWorkspace
performFileOperation:source:destination:files:tag:].
Use NSWorkspaceDestroyOperation to delete it, or
NSWorkspaceRecycleOperation to move it to trash.
| Related mails | Author | Date |
|---|---|---|
| Mr.Gecko | Mar 12, 21:42 | |
| Herr Thomas Bartel… | Mar 12, 21:45 | |
| Randall Meadows | Mar 12, 21:46 | |
| John Stiles | Mar 12, 23:10 | |
| Mr. Gecko | Mar 12, 23:12 | |
| Jean-Daniel Dupas | Mar 12, 23:24 |






Cocoa mail archive

