Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

start compat

  • Loading branch information...
commit 4b8a1faa1393db98ba34ad0040027fd0aaae413e 1 parent a37e8ce
@tomcool420 authored
Showing with 46 additions and 0 deletions.
  1. +46 −0 SMFCompatibility.m
View
46 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
Please sign in to comment.
Something went wrong with that request. Please try again.