Permalink
Browse files

fixed shelf compat in 5.0 GM

  • Loading branch information...
1 parent 7ec3be5 commit 66930c1de506abc996dac47063aed12be262ba7f kevin bradley committed Oct 17, 2011
View
2 SMFCompatibility.h
@@ -13,11 +13,13 @@
BOOL _usingFourPointTwoPlus;
BOOL _usingFourPointThreePlus;
BOOL _usingFourPointFourPlus;
+ BOOL _usingFourPointFourGM;
}
+(SMFCompatibility *)compat;
-(BOOL)usingFourPointTwoPlus;
-(BOOL)usingFourPointThreePlus;
-(BOOL)usingFourPointFourPlus;
+-(BOOL)usingFourPointFourGM;
@end
#define SMF_COMPAT [SMFCompatibility compat]
View
10 SMFCompatibility.m
@@ -25,7 +25,11 @@ -(id)init
if (_usingFourPointTwoPlus && NSClassFromString(@"BRTableView")) {
_usingFourPointThreePlus=YES;
}
- if (_usingFourPointThreePlus && NSClassFromString(@"BRProxyManager")) {
+ if (_usingFourPointThreePlus && NSClassFromString(@"ATVAudioOption"))
+ {
+ _usingFourPointFourGM=YES;
+ }
+ if (_usingFourPointThreePlus && NSClassFromString(@"BRProxyManager")) {
_usingFourPointFourPlus=YES;
}
}
@@ -43,4 +47,8 @@ -(BOOL)usingFourPointFourPlus
{
return _usingFourPointFourPlus;
}
+-(BOOL)usingFourPointFourGM
+{
+ return _usingFourPointFourGM;
+}
@end
View
3 SMFMoviePreviewController.m
@@ -522,6 +522,7 @@ -(void)reload
-(void)reloadShelf
{
+ NSLog(@"reloadShelf");
if (_shelfControl!=nil) {
[_shelfControl release];
@@ -530,7 +531,7 @@ -(void)reloadShelf
CGRect masterFrame=[BRWindow interfaceFrame];
- if(![SMF_COMPAT usingFourPointFourPlus])
+ if(![SMF_COMPAT usingFourPointFourPlus] && ![SMF_COMPAT usingFourPointFourGM])
{
_shelfControl = [[NSClassFromString(@"BRMediaShelfControl") alloc] init];
[_shelfControl setProvider:[self getProviderForShelf]];
View
4 _/DEBIAN/control
@@ -1,9 +1,9 @@
Package: org.tomcool.smframework
Name: SMFramework
-Version: 0.7.8-1
+Version: 0.7.8-4
Architecture: iphoneos-arm
Description: Framework for most packages written by me
Maintainer: Thomas Cool <thomas.cool@me.com>
Author: Thomas Cool <thomas.cool@me.com>
Section: Development
-Installed-Size: 740
+Installed-Size: 5092
View
3 _/Library/Frameworks/SMFramework.framework/Headers/SMFMenuItem.h
@@ -6,8 +6,9 @@
// Copyright 2010 tomcool.org. All rights reserved.
//
+#import <Foundation/Foundation.h>
#import "Backrow/AppleTV.h"
-
+@class BRMenuItem;
@interface SMFMenuItem : BRMenuItem {
BOOL centered;
View
BIN _/Library/Frameworks/SMFramework.framework/SMFramework
Binary file not shown.

0 comments on commit 66930c1

Please sign in to comment.