Open Shelf…

AppleTV Main Menu Woes — solved

Well, in working on my debugger test harness, I decided this would be a good opportunity to try a little hack I’d been thinking of for getting around the Main Menu issue. Normally, it sets the bottom of the list in a static position, so that as you add more plugins, the list grows off the top of the screen. I figured that this wasn’t ideal, and decided that the superclass’ implementation would be better.

Here’s some code I run in the test harness before the menu gets loaded for the first time, in the +initialize method for my BRAppManager subclass:


Method main, norm;
main = class_getInstanceMethod( [BRMainMenuController class],
                                @selector(listFrameForBounds:) );
if ( main != NULL )
{
    norm = class_getInstanceMethod( [BRMenuController class],
                                    @selector(listFrameForBounds:) );
    if ( norm != NULL )
        main->method_imp = norm->method_imp;
}

And here are some shots of the results; as usual, click on the images for a full-size version:

Top of the main menu

Bottom of the main menu

No Responses

Note that comments are displayed in reverse chronological order with topmost comments being freshest. Subscribe | Comment

Leave a Reply

You must be logged in to post a comment.