I'm making my way through Learning Core Data for iOS and I've found the Dropbox API has been updated since the book went to press less than a year ago.
In the book, there's this method:
- (void)refreshStatus
{
DBAccount *account = [[DBAccountManager sharedManager] linkedAccount];
if (!account.isLinked) {
self.navigationItem.title = @"Unlinked";
} else if ([[DBFilesystem sharedFilesystem] status] > DBSyncStatusActive) {
self.navigationItem.title = @"Syncing";
} else {
self.navigationItem.title = @"Backups";
}
}
I looked through the headers for the current Dropbox framework and there's no "DBSyncStatusActive", but there is a header called "DBSyncStatus" with a BOOL for the active property of DBSyncStatus. What would I type in to get a BOOL that returns the DBSyncStatus.
Here's a link to the documentation, but I'm not clear on what I need to do to get a BOOL to return: https://www.dropbox.com/developers/sync/docs/ios#DBSyncStatus