Skip to content

Commit

Permalink
fixed shelf compat in 5.0 GM
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin bradley committed Oct 17, 2011
1 parent 7ec3be5 commit 66930c1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
2 changes: 2 additions & 0 deletions SMFCompatibility.h
Expand Up @@ -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]
10 changes: 9 additions & 1 deletion SMFCompatibility.m
Expand Up @@ -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;
}
}
Expand All @@ -43,4 +47,8 @@ -(BOOL)usingFourPointFourPlus
{
return _usingFourPointFourPlus;
}
-(BOOL)usingFourPointFourGM
{
return _usingFourPointFourGM;
}
@end
3 changes: 2 additions & 1 deletion SMFMoviePreviewController.m
Expand Up @@ -522,6 +522,7 @@ -(void)reload

-(void)reloadShelf
{
NSLog(@"reloadShelf");

if (_shelfControl!=nil) {
[_shelfControl release];
Expand All @@ -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]];
Expand Down
4 changes: 2 additions & 2 deletions _/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
Expand Up @@ -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;
Expand Down
Binary file modified _/Library/Frameworks/SMFramework.framework/SMFramework
Binary file not shown.

0 comments on commit 66930c1

Please sign in to comment.