diff options
-rw-r--r-- | macosx/HBDistributedArray.h | 10 | ||||
-rw-r--r-- | macosx/HBDistributedArray.m | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/macosx/HBDistributedArray.h b/macosx/HBDistributedArray.h index 4163fca17..e72484aae 100644 --- a/macosx/HBDistributedArray.h +++ b/macosx/HBDistributedArray.h @@ -9,6 +9,16 @@ extern NSString *HBDistributedArrayChanged; /** + * Objects in HBDistributedArray + * must implement this protocol. + */ +@protocol HBUniqueObject <NSObject> + +@property (nonatomic, readonly) NSString *uuid; + +@end + +/** * HBDistributedArray * a mutable array that share its content between processes. * post a HBDistributedArrayChanged when the content is changed diff --git a/macosx/HBDistributedArray.m b/macosx/HBDistributedArray.m index 8dba9e5d1..56505ab1d 100644 --- a/macosx/HBDistributedArray.m +++ b/macosx/HBDistributedArray.m @@ -195,7 +195,7 @@ NSString *HBDistributedArraWrittenToDisk = @"HBDistributedArraWrittenToDisk"; */ - (void)reload { - NSMutableArray *jobsArray = nil;; + NSMutableArray *jobsArray = nil; @try { jobsArray = [NSKeyedUnarchiver unarchiveObjectWithFile:self.fileURL.path]; |