]> git.sesse.net Git - vlc/commitdiff
Use new selectors only if they exist...
authorJérome Decoodt <djc@videolan.org>
Wed, 11 May 2005 09:59:41 +0000 (09:59 +0000)
committerJérome Decoodt <djc@videolan.org>
Wed, 11 May 2005 09:59:41 +0000 (09:59 +0000)
modules/gui/macosx/prefs_widgets.m

index 5d79ed8636e40633ab42b24902669b0241027125..f5f6713caf88fb7f57f525886bd7360d381064a5 100644 (file)
@@ -1795,7 +1795,7 @@ if( MACOS_VERSION >= 10.3 )                                                 \
     [o_stepper setFloatValue: [o_textfield floatValue]];
 }
 
-- (int)floatValue
+- (float)floatValue
 {
     return [o_stepper floatValue];
 }
@@ -1905,7 +1905,7 @@ if( MACOS_VERSION >= 10.3 )                                                 \
     [o_slider setFloatValue: [o_textfield floatValue]];
 }
 
-- (int)floatValue
+- (float)floatValue
 {
     return [o_slider floatValue];
 }
@@ -2296,11 +2296,13 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
     o_scrollview = [[[NSScrollView alloc] initWithFrame: s_rc] retain];
     [o_scrollview setDrawsBackground: NO];
     [o_scrollview setBorderType: NSBezelBorder];
-    [o_scrollview setAutohidesScrollers:YES];
+    if( MACOS_VERSION >= 10.3 )
+        [o_scrollview setAutohidesScrollers:YES];
 
     NSTableView *o_tableview;
     o_tableview = [[NSTableView alloc] initWithFrame : s_rc];
-    [o_tableview setUsesAlternatingRowBackgroundColors:YES];
+    if( MACOS_VERSION >= 10.3 )
+        [o_tableview setUsesAlternatingRowBackgroundColors:YES];
     [o_tableview setHeaderView:nil];
 /* TODO: find a good way to fix the row height and text size*/
 /* FIXME: support for multiple selection... */