Re: NSFileManager notification
Re: NSFileManager notification
- Subject: Re: NSFileManager notification
- From: Chris Parker <email@hidden>
- Date: Mon, 1 Apr 2002 08:50:43 -0800
Hi Ram,
On Sunday, March 31, 2002, at 05:00 PM, M Ramachandra Acharya wrote:
There are two callback messages (for the operation handlers) in
NSFileManager "fileManager:willProcessPath:" and
"fileManager:shouldProceedAfterError:" which indicates the start of the
operation or the failure of the operation. I could not find any
callbacks to
indicate the completion of the operation. It seems like NSFileManager
does
not have any notification centers either.
Can anyone kindly let me know how I can get these completion
notifications/callbacks in a Cocoa application?
There are no notification messages defined for completion of operation
in NSFileManager - the return value of the copyPath:toPath:handler:
method or the movePath:toPath:handler: methods indicate success or
failure of the operation.
I suppose you could subclass NSFileManager, calling the superclass'
definition of copyPath:toPath:handler: (or what have you) and firing a
notification to the handler yourself after that returns...
.chris
--
Chris Parker <email@hidden>
Cocoa Frameworks Engineer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.