Changeset 632

Show
Ignore:
Timestamp:
07/14/08 17:11:26 (6 months ago)
Author:
gbooker
Message:

Merged over [631]

Files:

Legend:

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

    r572 r632  
    374374 */ 
    375375+ (NSArray *)callStackReturnAddressesForException:(NSException *)exception; 
     376 
     377/*! 
     378 * @brief Get the sharedFrontRowPreferences object. 
     379 * 
     380 * On Apple TV < 2.1, the RUIPreferences class is used for this.  On 2.1, the class is renamed to BRPreferences. 
     381 * 
     382 * @return the preferences object 
     383 */ 
     384+ (RUIPreferences *)sharedFrontRowPreferences; 
    376385@end 
    377386 
  • branches/CoreData/SapphireCompatibilityClasses/SapphireFrontRowCompat.m

    r572 r632  
    438438        return [[exception userInfo] objectForKey:NSStackTraceKey]; 
    439439} 
    440 @end 
     440 
     441+ (RUIPreferences *)sharedFrontRowPreferences { 
     442  Class preferencesClass = NSClassFromString(@"RUIPreferences"); 
     443  if(!preferencesClass) preferencesClass = NSClassFromString(@"BRPreferences"); 
     444   
     445  if(preferencesClass) 
     446    return [preferencesClass sharedFrontRowPreferences]; 
     447  else 
     448    return nil; 
     449
     450 
     451@end