如果保管箱文件夹中的任何文件发生更改,我希望通知用户。为此,我必须使用以下代码:
[self.restCLient loadDelta: nil];
和方法:
-(void)restClient:(DBRestClient *)client loadedDeltaEntries:(NSArray *)entries reset:(BOOL)shouldReset cursor:(NSString *)cursor hasMore:(BOOL)hasMore{
NSLog(@"WORKED: %@, %@, %c, %c", entries, cursor, hasMore, shouldReset);
}
-(void)restClient:(DBRestClient *)client loadDeltaFailedWithError:(NSError *)error{
NSLog(@"THE ERROR: %@", error);
}
这是我得到的响应类型:
2013-03-06 20:46:33.373 Splash-it[1659:907] WORKED: (
"<DBDeltaEntry: 0x1e2afbf0>",
"<DBDeltaEntry: 0x1e0e4030>",
"<DBDeltaEntry: 0x1e013640>",
"<DBDeltaEntry: 0x1e28e590>"
)
如果我的保管箱发生了变化,我该如何理解这一点?