| 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 | */ |
|---|
| 20 | |
|---|
| 21 | #import "SapphireMenuController.h" |
|---|
| 22 | #import "SapphireFrontRowCompat.h" |
|---|
| 23 | |
|---|
| 24 | @implementation SapphireMenuController |
|---|
| 25 | |
|---|
| 26 | - (id)initWithScene:(BRRenderScene *)scene |
|---|
| 27 | { |
|---|
| 28 | if([[BRMenuController class] instancesRespondToSelector:@selector(initWithScene:)]) |
|---|
| 29 | return [super initWithScene:scene]; |
|---|
| 30 | |
|---|
| 31 | return [super init]; |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | - (BRRenderScene *)scene |
|---|
| 35 | { |
|---|
| 36 | if([[BRMenuController class] instancesRespondToSelector:@selector(scene)]) |
|---|
| 37 | return [super scene]; |
|---|
| 38 | |
|---|
| 39 | return [BRRenderScene sharedInstance]; |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | /*Just because so many classes use self as the list data source*/ |
|---|
| 43 | - (float)heightForRow:(long)row |
|---|
| 44 | { |
|---|
| 45 | return 0.0f; |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | - (BOOL)rowSelectable:(long)row |
|---|
| 49 | { |
|---|
| 50 | return YES; |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | @end |
|---|