NSFileCoordinator correct usage

Posted by Johannes on Stack Overflow See other posts from Stack Overflow or by Johannes
Published on 2012-08-03T09:29:01Z Indexed on 2012/12/12 11:04 UTC
Read the original article Hit count: 436

Filed under:
|
|

when writing a file using NSFileCoordinator i need to specify to correct NSFileCoordinatorWritingOptions. Although they are explained in detail, i am not sure when to use which one. The available options are:

  • NSFileCoordinatorWritingForDeleting
  • NSFileCoordinatorWritingForReplacing
  • NSFileCoordinatorWritingForMoving
  • NSFileCoordinatorWritingForMerging

For example, what option is the correct one if i want to create a file(a plist for example)? Wich one when i modify a file?

Can someone explain the NSFileCoordinatorWritingOptions for a better understanding?

Greetings, Johannes

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about iCloud