Show
Ignore:
Timestamp:
02/23/08 18:11:08 (4 years ago)
Author:
steile
Message:

Add usingTakeTwo method, which is like usingFrontRow except only true on ATV2.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireCompatibilityClasses/SapphireFrontRowCompat.m

    r493 r495  
    8282 
    8383static BOOL usingFrontRow = NO; 
     84static BOOL usingTakeTwo = NO; 
    8485 
    8586+ (void)initialize 
     
    8788        if(NSClassFromString(@"BRAdornedMenuItemLayer") == nil) 
    8889                usingFrontRow = YES; 
     90   
     91  if(NSClassFromString(@"BRBaseAppliance") != nil) 
     92    usingTakeTwo = YES; 
    8993} 
    9094 
     
    9296{ 
    9397        return usingFrontRow; 
     98} 
     99 
     100+ (BOOL)usingTakeTwo 
     101{ 
     102  return usingTakeTwo; 
    94103} 
    95104