TICDSFileManagerBasedApplicationSyncManager Class Reference
Inherits from | TICDSApplicationSyncManager : NSObject |
Declared in | TICDSFileManagerBasedApplicationSyncManager.h |
Overview
The TICDSFileManagerBasedApplicationSyncManager
describes a class used to synchronize an application with a remote service that can be accessed via an NSFileManager
. This includes:
- Dropbox on the desktop (files are typically accessed via
~/Dropbox
) - iDisk on the desktop
The only requirement is that you set the NSURL
location of the directory that should contain the application before you register the sync manager. For example, if you wish to have sync information stored in ~/Dropbox/com.yourcompany.MySynchronizedApp/
, specify ~/Dropbox
as the applicationContainingDirectoryLocation
.
Tasks
Dropbox-Related Methods
-
+ localDropboxDirectoryLocation
Returns the location of the user’s Dropbox directory, if one exists, by decoding the content in
~/.dropbox/host.db
, as described at https://www.dropbox.com/developers/desktop_apps.
Properties
-
applicationContainingDirectoryLocation
The location of the directory that should contain the file structure for this application’s synchronization.
property
Paths
-
applicationDirectoryPath
The path to the root application directory.
property -
deletedDocumentsDirectoryPath
The path to the
propertyDeletedDocuments
directory inside theInformation
directory at the root of the application. -
encryptionDirectorySaltDataFilePath
The path to the
propertysalt.ticdsync
file inside theEncryption
directory at the root of the application. -
encryptionDirectoryTestDataFilePath
The path to the
propertytest.ticdsync
file inside theEncryption
directory at the root of the application. -
documentsDirectoryPath
The path to the
propertyDocuments
directory at the root of the application. -
clientDevicesDirectoryPath
The path to the
propertyClientDevices
directory at the root of the application. -
clientDevicesThisClientDeviceDirectoryPath
The path to this client’s directory inside the
propertyClientDevices
directory at the root of the application. -
– pathToWholeStoreDirectoryForDocumentWithIdentifier:
The path to the
WholeStore
directory for a document with a given identifier.
Properties
applicationContainingDirectoryLocation
The location of the directory that should contain the file structure for this application’s synchronization.
@property (nonatomic, strong) NSURL *applicationContainingDirectoryLocation
Declared In
TICDSFileManagerBasedApplicationSyncManager.h
applicationDirectoryPath
The path to the root application directory.
@property (weak, nonatomic, readonly) NSString *applicationDirectoryPath
Declared In
TICDSFileManagerBasedApplicationSyncManager.h
clientDevicesDirectoryPath
The path to the ClientDevices
directory at the root of the application.
@property (weak, nonatomic, readonly) NSString *clientDevicesDirectoryPath
Declared In
TICDSFileManagerBasedApplicationSyncManager.h
clientDevicesThisClientDeviceDirectoryPath
The path to this client’s directory inside the ClientDevices
directory at the root of the application.
@property (weak, nonatomic, readonly) NSString *clientDevicesThisClientDeviceDirectoryPath
Declared In
TICDSFileManagerBasedApplicationSyncManager.h
deletedDocumentsDirectoryPath
The path to the DeletedDocuments
directory inside the Information
directory at the root of the application.
@property (weak, nonatomic, readonly) NSString *deletedDocumentsDirectoryPath
Declared In
TICDSFileManagerBasedApplicationSyncManager.h
documentsDirectoryPath
The path to the Documents
directory at the root of the application.
@property (weak, nonatomic, readonly) NSString *documentsDirectoryPath
Declared In
TICDSFileManagerBasedApplicationSyncManager.h
Class Methods
localDropboxDirectoryLocation
Returns the location of the user’s Dropbox directory, if one exists, by decoding the content in ~/.dropbox/host.db
, as described at https://www.dropbox.com/developers/desktop_apps.
+ (NSURL *)localDropboxDirectoryLocation
Return Value
The location of the user’s Dropbox directory, or nil
if no path could be found.
Discussion
%warning%
Warning: This procedure has been marked “will likely be deprecated” by Dropbox. Do not rely on this as the only way to get hold of the user’s Dropbox directory, and do not use it without checking with the user that it is the correct location.
Declared In
TICDSFileManagerBasedApplicationSyncManager.h
Instance Methods
pathToWholeStoreDirectoryForDocumentWithIdentifier:
The path to the WholeStore
directory for a document with a given identifier.
- (NSString *)pathToWholeStoreDirectoryForDocumentWithIdentifier:(NSString *)anIdentifier
Parameters
- anIdentifier
The unique sync identifier of the document.
Declared In
TICDSFileManagerBasedApplicationSyncManager.h