]> granicus.if.org Git - handbrake/commitdiff
MacGui: add a protocol HBUniqueObject objects must implements if they are used in...
authorritsuka <damiog@gmail.com>
Fri, 20 Feb 2015 08:03:55 +0000 (08:03 +0000)
committerritsuka <damiog@gmail.com>
Fri, 20 Feb 2015 08:03:55 +0000 (08:03 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6929 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBDistributedArray.h
macosx/HBDistributedArray.m

index 4163fca17fe3b61c7b452a5df81c832ebfa5ed2f..e72484aae133f87a72868e7f28df1127174315db 100644 (file)
@@ -8,6 +8,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.
index 8dba9e5d12d3ef5c79acb77b33e7f2bacbdc2485..56505ab1d68f8bbdbff143bd441bc3e1c923f367 100644 (file)
@@ -195,7 +195,7 @@ NSString *HBDistributedArraWrittenToDisk = @"HBDistributedArraWrittenToDisk";
  */
 - (void)reload
 {
-    NSMutableArray *jobsArray = nil;;
+    NSMutableArray *jobsArray = nil;
     @try
     {
         jobsArray = [NSKeyedUnarchiver unarchiveObjectWithFile:self.fileURL.path];