]> granicus.if.org Git - handbrake/commitdiff
MacGui: second part of the previous commit
authorritsuka <damiog@gmail.com>
Thu, 6 Aug 2015 09:48:39 +0000 (09:48 +0000)
committerritsuka <damiog@gmail.com>
Thu, 6 Aug 2015 09:48:39 +0000 (09:48 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7392 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBDVDDetector.m
macosx/HBDockTile.m
macosx/HBLanguagesSelection.h
macosx/HBLanguagesSelection.m
macosx/HBPresetsViewController.h
macosx/HBPreviewGenerator.h
macosx/HBPreviewGenerator.m
macosx/HBQueueController.h
macosx/HBVideo+UIAdditions.h
macosx/HBVideo+UIAdditions.m

index 50be26b61e1b71589c91475db71a2751672d07be..1d6c40d11aa2d0fb05cd2929c3006cb7245cf959 100644 (file)
     NSString *bsdName;
 }
 
+- (instancetype)init
+{
+    @throw nil;
+}
+
 + (HBDVDDetector *)detectorForPath: (NSString *)aPath
 {
     return [[self alloc] initWithPath:aPath];
index f03e2fdff3fadca74a1084f54754b89caac19417..1b61d71c56009209641649dc93e1f027686bab63 100644 (file)
@@ -22,6 +22,11 @@ NSString *dockTilePercentFormat = @"%2.1f%%";
 
 @implementation HBDockTile
 
+- (instancetype)init
+{
+    @throw nil;
+}
+
 - (instancetype)initWithDockTile:(NSDockTile *)dockTile image:(NSImage *)image
 {
     self = [super init];
index edaa8f1406357db0eb7488b88d8e5def5d512cd6..b14d7d89a93b9b02382338f25548b9be471c1a17 100644 (file)
@@ -21,6 +21,7 @@
 @property (nonatomic, readonly) NSString *language;
 @property (nonatomic, readonly) NSString *iso639_2;
 
+- (instancetype)init NS_UNAVAILABLE;
 - (instancetype)initWithLanguage:(NSString *)value iso639_2code:(NSString *)code NS_DESIGNATED_INITIALIZER;
 
 @end;
index f848f9a1055777a06ab3b103eca9fbce1c9f4413..d9d5a9b1ea0de4406a229afd3bb63ee861b6a7f9 100644 (file)
@@ -9,6 +9,11 @@
 
 @implementation HBLang
 
+- (instancetype)init
+{
+    @throw nil;
+}
+
 - (instancetype)initWithLanguage:(NSString *)value iso639_2code:(NSString *)code
 {
     self = [super init];
index baa130117cf99ff4d16c5459f6a556983cc9c4d5..d3356fe64c7c826f4e0e23ecefab3c5a071ace3d 100644 (file)
@@ -20,7 +20,7 @@
 
 - (instancetype)initWithPresetManager:(HBPresetsManager *)presetManager;
 
-@property (nonatomic, readwrite, weak) id<HBPresetsViewControllerDelegate> delegate;
+@property (nonatomic, readwrite, assign) id<HBPresetsViewControllerDelegate> delegate;
 
 - (IBAction)exportPreset:(id)sender;
 - (IBAction)importPreset:(id)sender;
index 9ca549d9f76e266c5d6cce84f440b309ebea36d0..88999b6a7ff687034262b4f80def5dc01fddc0b0 100644 (file)
@@ -24,8 +24,9 @@ NS_ASSUME_NONNULL_BEGIN
 
 @interface HBPreviewGenerator : NSObject
 
-@property (nonatomic, weak, nullable) id <HBPreviewGeneratorDelegate> delegate;
+@property (nonatomic, assign, nullable) id <HBPreviewGeneratorDelegate> delegate;
 
+- (instancetype)init NS_UNAVAILABLE;
 - (instancetype)initWithCore:(HBCore *)core job:(HBJob *)job NS_DESIGNATED_INITIALIZER;
 
 /* Still image generator */
index d3fb4ffee859e693933b9f4f96f23455c1027901..60db556f968a66af5212b73fd539256cab14ae05 100644 (file)
 
 @implementation HBPreviewGenerator
 
+- (instancetype)init
+{
+    @throw nil;
+}
+
 - (instancetype)initWithCore:(HBCore *)core job:(HBJob *)job
 {
     self = [super init];
index fc99914f02292dd09038c4dc63f54bbc9b7d5fb8..ca14104ba134c6eca79c1b0c85f91706ae2bfc6b 100644 (file)
@@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
 /// The HBCore used for encoding.
 @property (nonatomic, readonly) HBCore *core;
 
-@property (nonatomic, weak, nullable) HBController *controller;
+@property (nonatomic, assign, nullable) HBController *controller;
 @property (nonatomic, weak, nullable) HBAppDelegate *delegate;
 
 @property (nonatomic, readonly) NSUInteger count;
index 6817b716279ea551e04ff9b9d568814b445c0916..341c633eecc711fbd24a5390fc8f556982267276 100644 (file)
@@ -41,6 +41,7 @@
 @end
 
 @interface HBPresetsTransformer : NSValueTransformer
+- (instancetype)init NS_UNAVAILABLE;
 - (instancetype)initWithEncoder:(int)encoder NS_DESIGNATED_INITIALIZER;
 @end
 
index cd07bde1169e0aa6afeb68c831aa6b5480154700..f0e6b26786a50d21081a1adc2de087ba8bdfedb6 100644 (file)
     int _encoder;
 }
 
+- (instancetype)init
+{
+    @throw nil;
+}
+
 - (instancetype)initWithEncoder:(int)encoder
 {
     self = [super init];
     double _max;
 }
 
+- (instancetype)init
+{
+    return [self initWithReversedDirection:NO min:0 max:50];
+}
+
 - (instancetype)initWithReversedDirection:(BOOL)reverse min:(double)min max:(double)max
 {
     self = [super init];