| 1 | /* |
|---|
| 2 | * SapphireTextWithSpinnerController.m |
|---|
| 3 | * Sapphire |
|---|
| 4 | * |
|---|
| 5 | * Created by Graham Booker on Nov. 27, 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 "SapphireTextWithSpinnerController.h" |
|---|
| 22 | #import "SapphireFrontRowCompat.h" |
|---|
| 23 | |
|---|
| 24 | @interface BRTextWithSpinnerController (compat) |
|---|
| 25 | - (id) initWithTitle:(NSString *)title text:(NSString *)text; |
|---|
| 26 | @end |
|---|
| 27 | |
|---|
| 28 | @implementation SapphireTextWithSpinnerController |
|---|
| 29 | - (id) initWithScene: (BRRenderScene *) scene title:(NSString *)title text:(NSString *)text showBack:(BOOL)show |
|---|
| 30 | { |
|---|
| 31 | if([[BRTextWithSpinnerController class] instancesRespondToSelector:@selector(initWithScene:title:text:showBack:)]) |
|---|
| 32 | return [super initWithScene:scene title:title text:text showBack:show]; |
|---|
| 33 | |
|---|
| 34 | return [super initWithTitle:title text:text]; |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | - (BRRenderScene *)scene |
|---|
| 38 | { |
|---|
| 39 | if([[BRTextWithSpinnerController class] instancesRespondToSelector:@selector(scene)]) |
|---|
| 40 | return [super scene]; |
|---|
| 41 | |
|---|
| 42 | return [BRRenderScene sharedInstance]; |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | @end |
|---|