• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSFileManager notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSFileManager notification (From: M Ramachandra Acharya <email@hidden>)

  • Prev by Date: Re: Carbon Events vs Cocoa Events
  • Next by Date: Re: Full screen Mode
  • Previous by thread: NSFileManager notification
  • Next by thread: Re: NSFileManager notification
  • Index(es):
    • Date
    • Thread