Skip to content

Commit

Permalink
start compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcool420 committed Jul 19, 2011
1 parent a37e8ce commit 4b8a1fa
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions SMFCompatibility.m
@@ -0,0 +1,46 @@
//
// SMFCompatibility.m
// SMFramework
//
// Created by Thomas Cool on 7/13/11.
// Copyright 2011 tomcool.org. All rights reserved.
//

#import "SMFCompatibility.h"
#import "SMFramework.h"
@implementation SMFCompatibility


SYNTHESIZE_SINGLETON_FOR_CLASS(SMFCompatibility, compat)
-(id)init
{
self=[super init];
if (self!=nil) {
_usingFourPointFourPlus=NO;
_usingFourPointThreePlus=NO;
_usingFourPointTwoPlus=NO;
if (NSClassFromString(@"BRVoiceOver")!=nil) {
_usingFourPointTwoPlus=YES;
}
if (_usingFourPointTwoPlus && NSClassFromString(@"BRTableView")) {
_usingFourPointThreePlus=YES;
}
if (_usingFourPointThreePlus && NSClassFromString(@"BRProxyManager")) {
_usingFourPointFourPlus=YES;
}
}
return self;
}
-(BOOL)usingFourPointTwoPlus
{
return _usingFourPointTwoPlus;
}
-(BOOL)usingFourPointThreePlus
{
return _usingFourPointThreePlus;
}
-(BOOL)usingFourPointFourPlus
{
return _usingFourPointFourPlus;
}
@end

0 comments on commit 4b8a1fa

Please sign in to comment.