[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:k2009RemoteButtonPlay] forKey:@"33_21_20_8_2_33_21_20_8_2_"];
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:k2009RemoteButtonFullscreen] forKey:@"33_21_20_3_2_33_21_20_3_2_"];
- if( OSX_LION )
- /* Lion cookies */
- [mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"42_33_23_21_20_2_33_23_21_20_2_"];
- else
+ if( OSX_SNOW_LEOPARD )
/* 10.6.2+ Snow Leopard cookies */
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"19_"];
+ else
+ /* Lion cookies */
+ [mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"42_33_23_21_20_2_33_23_21_20_2_"];
_cookieToButtonMapping = [[NSDictionary alloc] initWithDictionary: mutableCookieToButtonMapping];
[mutableCookieToButtonMapping release];
[[o_tableView tabViewItemAtIndex:[o_tableView indexOfTabViewItemWithIdentifier:@"filter"]] setLabel:_NS("Filter")];
[o_window setTitle:_NS("Audio Effects")];
[o_window setExcludedFromWindowsMenu:YES];
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[self setupEqualizer];
b_activeDragAndDrop = YES;
[self setNeedsDisplay:YES];
- if (OSX_SNOW_LEOPARD || OSX_LION)
- [[NSCursor dragCopyCursor] set];
+ [[NSCursor dragCopyCursor] set];
if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) == NSDragOperationGeneric)
return NSDragOperationGeneric;
if (b_dark_interface)
{
#ifdef MAC_OS_X_VERSION_10_7
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
styleMask = NSBorderlessWindowMask | NSResizableWindowMask;
else
styleMask = NSBorderlessWindowMask;
[self setMovableByWindowBackground: YES];
/* we don't want this window to be restored on relaunch */
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[self setRestorable:NO];
return self;
b_video_deco = var_InheritBool( VLCIntf, "video-deco" );
b_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7
- if( OSX_LION && b_video_deco )
+ if( !OSX_SNOW_LEOPARD && b_video_deco )
b_nativeFullscreenMode = var_InheritBool( VLCIntf, "macosx-nativefullscreenmode" );
#endif
t_hide_mouse_timer = nil;
[o_detached_titlebar_view setFullscreenButtonHidden: YES];
}
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
{
/* the default small size of the search field is slightly different on Lion, let's work-around that */
NSRect frame;
frame.size.width = 0;
[o_detached_time_sld_fancygradient_view setFrame: frame];
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
{
[o_resize_view setImage: NULL];
[o_detached_resize_view setImage: NULL];
if (b_dark_interface || !b_video_deco)
{
#ifdef MAC_OS_X_VERSION_10_7
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
styleMask = NSBorderlessWindowMask | NSResizableWindowMask;
else
styleMask = NSBorderlessWindowMask;
[self setMovableByWindowBackground: YES];
/* we don't want this window to be restored on relaunch */
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[self setRestorable:NO];
return self;
- (void)loadButtonIcons
{
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
{
if( [NSColor currentControlTint] == NSBlueControlTint )
{
return;
NSArray * pathComponents;
-
- if (OSX_SNOW_LEOPARD || OSX_LION)
- pathComponents = [representedURL pathComponents];
- else
- pathComponents = [[representedURL path] pathComponents];
+ pathComponents = [representedURL pathComponents];
if (!pathComponents)
return;
}
NSArray * pathComponents;
- if (OSX_SNOW_LEOPARD || OSX_LION)
- pathComponents = [representedURL pathComponents];
- else
- pathComponents = [[representedURL path] pathComponents];
+ pathComponents = [representedURL pathComponents];
if (!pathComponents)
return;
[[o_sv_dur_value_fld formatter] setFormat:[NSString stringWithFormat:@"#,##0.000%@", o_suffix]];
[o_sv_dur_value_fld setToolTip: o_toolTip];
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[self resetValues:self];
{
[o_window setTitle: _NS("Video Effects")];
[o_window setExcludedFromWindowsMenu:YES];
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[[o_tableView tabViewItemAtIndex:[o_tableView indexOfTabViewItemWithIdentifier:@"basic"]] setLabel:_NS("Basic")];
- (void)awakeFromNib
{
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_about_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
/* add a colored backdrop to get a white window background */
- (void)awakeFromNib
{
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_bookmarks_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[self initStrings];
BOOL b_invertedEventFromDevice = NO;
CGFloat f_deltaY, f_deltaX = .0;
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
{
if ([theEvent isDirectionInvertedFromDevice])
b_invertedEventFromDevice = YES;
[win setOpaque:NO];
[win setHasShadow: NO];
[win setBackgroundColor:[NSColor clearColor]];
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[win setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
/* let the window sit on top of everything else and start out completely transparent */
var_AddCallback(p_playlist, "volume", VolumeUpdated, self);
var_AddCallback(p_playlist, "mute", VolumeUpdated, self);
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
{
if ([NSApp currentSystemPresentationOptions] & NSApplicationPresentationFullScreen)
var_SetBool( p_playlist, "fullscreen", YES );
/* yeah, we are done */
b_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7
- if( OSX_LION && b_video_deco )
+ if( !OSX_SNOW_LEOPARD && b_video_deco )
b_nativeFullscreenMode = var_InheritBool( p_intf, "macosx-nativefullscreenmode" );
#endif
{
b_isset_canBecomeKeyWindow = NO;
/* we don't want this window to be restored on relaunch */
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[self setRestorable:NO];
}
return self;
- (void)awakeFromNib
{
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_panel setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_panel setTitle: _NS("Open Source")];
{
[o_info_window setExcludedFromWindowsMenu: YES];
[o_info_window setFloatingPanel: NO];
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_info_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_info_window setTitle: _NS("Media Information")];
{
p_intf = VLCIntf;
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_prefs_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[self initStrings];
[o_sprefs_toolbar setDelegate: self];
[o_sprefs_win setToolbar: o_sprefs_toolbar];
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_sprefs_win setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_hotkeys_listbox setTarget:self];
#ifdef MAC_OS_X_VERSION_10_7
b_correct_sdk = YES;
#endif
- if( !( b_correct_sdk && OSX_LION ))
+ if( !( b_correct_sdk && !OSX_SNOW_LEOPARD ))
{
[o_intf_nativefullscreen_ckb setState: NSOffState];
[o_intf_nativefullscreen_ckb setEnabled: NO];
- (void)awakeFromNib
{
- if (OSX_LION)
+ if (!OSX_SNOW_LEOPARD)
[o_wizard_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
/* some minor cleanup */