Changeset 495

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

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

Location:
trunk/SapphireCompatibilityClasses
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireCompatibilityClasses/SapphireFrontRowCompat.h

    r490 r495  
    4646 */ 
    4747+ (BOOL)usingFrontRow; 
     48 
     49/*! 
     50 * @brief Are we on ATV Take Two? 
     51 * 
     52 * @return YES if on take two, NO otherwise 
     53 */ 
     54+ (BOOL)usingTakeTwo; 
    4855 
    4956/*! 
  • 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