source: trunk/SapphireMenuController.m @ 435

Revision 435, 1.5 KB checked in by gbooker, 6 years ago (diff)

Seems that a height of 0.0f is analogous to an auto-height, so let's use that instead.

RevLine 
[407]1/*
2 * SapphireMenuController.m
3 * Sapphire
4 *
5 * Created by Graham Booker on Oct. 29, 2007.
6 * Copyright 2007 Sapphire Development Team and/or www.nanopi.net
7 * All rights reserved.
8 *
9 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
10 * General Public License as published by the Free Software Foundation; either version 3 of the License,
11 * or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
14 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
15 * Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with this program; if not,
18 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 */
[263]20
21#import "SapphireMenuController.h"
[264]22#import "SapphireFrontRowCompat.h"
[263]23
24@implementation SapphireMenuController
25
26- (id)initWithScene:(BRRenderScene *)scene
27{
[275]28        if([[BRMenuController class] instancesRespondToSelector:@selector(initWithScene:)])
[263]29                return [super initWithScene:scene];
30       
31        return [super init];
32}
33
34- (BRRenderScene *)scene
35{
[275]36        if([[BRMenuController class] instancesRespondToSelector:@selector(scene)])
[263]37                return [super scene];
38       
39        return [BRRenderScene sharedInstance];
40}
41
[272]42/*Just because so many classes use self as the list data source*/
43- (float)heightForRow:(long)row
44{
[435]45        return 0.0f;
[272]46}
47
48- (BOOL)rowSelectable:(long)row
49{
50        return YES;
51}
52
[263]53@end
Note: See TracBrowser for help on using the repository browser.