summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2013-10-25 18:21:54 +0000
committerritsuka <[email protected]>2013-10-25 18:21:54 +0000
commitef19311ee492b85995da5446d75e2cc0fdb40549 (patch)
treebd28a616c62f9a9c2eaa5d56f52795279ebf0adc /macosx/PictureController.m
parent32a56184a88817091950a94335dbf1036677eaf1 (diff)
MacGUI: Varius warnings fixes:
- NSUInteger and NSInteger instead of int (where the Cocoa 64bit api uses them). - Cast to int when needed because NSInteger on 64bit is defined as long. - NSURL instead of NSString when possible. - Replaced some deprecated methods/functions. - numberWithInteger instead of numberWithInt. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5854 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.m')
-rw-r--r--macosx/PictureController.m36
1 files changed, 18 insertions, 18 deletions
diff --git a/macosx/PictureController.m b/macosx/PictureController.m
index 95d21afd8..f74eb3112 100644
--- a/macosx/PictureController.m
+++ b/macosx/PictureController.m
@@ -277,7 +277,7 @@
NSSize currentSize = [filterBox frame].size;
NSRect boxFrame = [filterBox frame];
- if ([sender titleOfSelectedItem] == @"Custom")
+ if ([[sender titleOfSelectedItem] isEqualToString: @"Custom"])
{
currentSize.height = 60;
@@ -1195,7 +1195,7 @@ are maintained across different sources */
fPictureFilterSettings.denoise = [fDenoisePopUp indexOfSelectedItem];
[self adjustFilterDisplay:fDenoisePopUp];
- if ([fDeblockField stringValue] == @"Off")
+ if ([[fDeblockField stringValue] isEqualToString:@"Off"])
{
fPictureFilterSettings.deblock = 0;
}
@@ -1240,7 +1240,7 @@ are maintained across different sources */
/* Grab a still preview ... */
[self reloadStillPreview];
/* ... then reset deinterlace back to where specified in the ui */
- fTitle->job->deinterlace = [fDeinterlacePopUp indexOfSelectedItem];
+ fTitle->job->deinterlace = (int)[fDeinterlacePopUp indexOfSelectedItem];
}
else
@@ -1251,7 +1251,7 @@ are maintained across different sources */
}
else
{
- fTitle->job->deinterlace = [fDeinterlacePopUp indexOfSelectedItem];
+ fTitle->job->deinterlace = (int)[fDeinterlacePopUp indexOfSelectedItem];
[self reloadStillPreview];
}
}
@@ -1271,7 +1271,7 @@ are maintained across different sources */
}
-- (int) detelecine
+- (NSInteger)detelecine
{
return fPictureFilterSettings.detelecine;
}
@@ -1281,7 +1281,7 @@ are maintained across different sources */
return [fDetelecineField stringValue];
}
-- (void) setDetelecine: (int) setting
+- (void) setDetelecine: (NSInteger) setting
{
fPictureFilterSettings.detelecine = setting;
}
@@ -1291,7 +1291,7 @@ are maintained across different sources */
[fDetelecineField setStringValue:string];
}
-- (int) deinterlace
+- (NSInteger) deinterlace
{
return fPictureFilterSettings.deinterlace;
}
@@ -1305,11 +1305,11 @@ are maintained across different sources */
[fDeinterlaceField setStringValue:string];
}
-- (void) setDeinterlace: (int) setting
+- (void) setDeinterlace: (NSInteger) setting
{
fPictureFilterSettings.deinterlace = setting;
}
-- (int) decomb
+- (NSInteger) decomb
{
return fPictureFilterSettings.decomb;
}
@@ -1319,12 +1319,12 @@ are maintained across different sources */
return [fDecombField stringValue];
}
-- (int) useDecomb
+- (NSInteger) useDecomb
{
return fPictureFilterSettings.usedecomb;
}
-- (void) setUseDecomb: (int) setting
+- (void) setUseDecomb: (NSInteger) setting
{
fPictureFilterSettings.usedecomb = setting;
if (fPictureFilterSettings.usedecomb == 1)
@@ -1338,7 +1338,7 @@ are maintained across different sources */
[self modeDecombDeinterlaceSliderChanged:nil];
}
-- (void) setDecomb: (int) setting {
+- (void) setDecomb: (NSInteger) setting {
fPictureFilterSettings.decomb = setting;
}
@@ -1347,7 +1347,7 @@ are maintained across different sources */
[fDecombField setStringValue:string];
}
-- (int) denoise
+- (NSInteger) denoise
{
return fPictureFilterSettings.denoise;
}
@@ -1362,27 +1362,27 @@ are maintained across different sources */
[fDenoiseField setStringValue:string];
}
-- (void) setDenoise: (int) setting
+- (void) setDenoise: (NSInteger) setting
{
fPictureFilterSettings.denoise = setting;
}
-- (int) deblock
+- (NSInteger) deblock
{
return fPictureFilterSettings.deblock;
}
-- (void) setDeblock: (int) setting
+- (void) setDeblock: (NSInteger) setting
{
fPictureFilterSettings.deblock = setting;
}
-- (int) grayscale
+- (NSInteger) grayscale
{
return fPictureFilterSettings.grayscale;
}
-- (void) setGrayscale: (int) setting
+- (void) setGrayscale: (NSInteger) setting
{
fPictureFilterSettings.grayscale = setting;
}