Attachments on Kdb1 Entries are now supported. Saving not implemented. Attach/detach works.

This commit is contained in:
michael starke
2013-07-19 23:30:45 +02:00
parent 86d983f776
commit dc51c60c19
6 changed files with 19 additions and 10 deletions

View File

@@ -105,6 +105,14 @@
[self.treeV4.binaries removeObject:binary];
}
- (void)removeAttachmentFromEntry:(KdbEntry *)anEntry {
if(self.version != MPDatabaseVersion3) {
return;
}
Kdb3Entry *entry = (Kdb3Entry *)anEntry;
[entry removeObjectFromBinariesAtIndex:0];
}
- (Binary *)findBinary:(BinaryRef *)reference {
if(self.version != MPDatabaseVersion4) {
return nil;