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.timisted.MySynchronizedApp/, specify ~/Dropbox as the applicationContainingDirectoryLocation.
Tasks
Dropbox-Related Methods
-
+ localDropboxDirectoryLocationReturns 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
-
applicationContainingDirectoryLocationThe location of the directory that should contain the file structure for this application’s synchronization.
property
Paths
-
applicationDirectoryPathThe path to the root application directory.
property -
deletedDocumentsDirectoryPathThe path to the
propertyDeletedDocumentsdirectory inside theInformationdirectory at the root of the application. -
encryptionDirectorySaltDataFilePathThe path to the
propertysalt.ticdsyncfile inside theEncryptiondirectory at the root of the application. -
encryptionDirectoryTestDataFilePathThe path to the
propertytest.ticdsyncfile inside theEncryptiondirectory at the root of the application. -
documentsDirectoryPathThe path to the
propertyDocumentsdirectory at the root of the application. -
clientDevicesDirectoryPathThe path to the
propertyClientDevicesdirectory at the root of the application. -
clientDevicesThisClientDeviceDirectoryPathThe path to this client’s directory inside the
propertyClientDevicesdirectory at the root of the application. -
– pathToWholeStoreDirectoryForDocumentWithIdentifier:The path to the
WholeStoredirectory 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, retain) NSURL *applicationContainingDirectoryLocationDeclared In
TICDSFileManagerBasedApplicationSyncManager.happlicationDirectoryPath
The path to the root application directory.
@property (nonatomic, readonly) NSString *applicationDirectoryPathDeclared In
TICDSFileManagerBasedApplicationSyncManager.hclientDevicesDirectoryPath
The path to the ClientDevices directory at the root of the application.
@property (nonatomic, readonly) NSString *clientDevicesDirectoryPathDeclared In
TICDSFileManagerBasedApplicationSyncManager.hclientDevicesThisClientDeviceDirectoryPath
The path to this client’s directory inside the ClientDevices directory at the root of the application.
@property (nonatomic, readonly) NSString *clientDevicesThisClientDeviceDirectoryPathDeclared In
TICDSFileManagerBasedApplicationSyncManager.hdeletedDocumentsDirectoryPath
The path to the DeletedDocuments directory inside the Information directory at the root of the application.
@property (nonatomic, readonly) NSString *deletedDocumentsDirectoryPathDeclared In
TICDSFileManagerBasedApplicationSyncManager.hdocumentsDirectoryPath
The path to the Documents directory at the root of the application.
@property (nonatomic, readonly) NSString *documentsDirectoryPathDeclared In
TICDSFileManagerBasedApplicationSyncManager.hClass 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 *)localDropboxDirectoryLocationReturn Value
The location of the user’s Dropbox directory, or nil if no path could be found.
Discussion
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.hInstance Methods
pathToWholeStoreDirectoryForDocumentWithIdentifier:
The path to the WholeStore directory for a document with a given identifier.
- (NSString *)pathToWholeStoreDirectoryForDocumentWithIdentifier:(NSString *)anIdentifierParameters
- anIdentifier
The unique sync identifier of the document.
Declared In
TICDSFileManagerBasedApplicationSyncManager.h