Changeset 679

Show
Ignore:
Timestamp:
10/04/08 16:41:55 (3 months ago)
Author:
steile
Message:

Add a usingTakeTwoDotTwo method that returns YES when we're on ATV2.2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SapphireCompatibilityClasses/SapphireFrontRowCompat.h

    r678 r679  
    5353 */ 
    5454+ (BOOL)usingTakeTwo; 
     55 
     56/*! 
     57 * @brief Are we on ATV 2.2? 
     58 * 
     59 * @return YES if on 2.2, NO otherwise 
     60 */ 
     61+ (BOOL)usingTakeTwoDotTwo; 
    5562 
    5663/*! 
  • trunk/SapphireCompatibilityClasses/SapphireFrontRowCompat.m

    r631 r679  
    8484static BOOL usingFrontRow = NO; 
    8585static BOOL usingTakeTwo = NO; 
     86static BOOL usingTakeTwoDotTwo = NO; 
    8687 
    8788+ (void)initialize 
     
    9293  if(NSClassFromString(@"BRBaseAppliance") != nil) 
    9394    usingTakeTwo = YES; 
     95   
     96  if(NSClassFromString(@"BRVideoPlayerController") == nil) 
     97    usingTakeTwoDotTwo = YES; 
    9498} 
    9599 
     
    102106{ 
    103107  return usingTakeTwo; 
     108} 
     109 
     110+ (BOOL)usingTakeTwoDotTwo 
     111{ 
     112  return usingTakeTwoDotTwo; 
    104113} 
    105114