PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

/Classes/ImageButton.m

http://github.com/kstenerud/ObjectAL-for-iPhone
Objective C | 27 lines | 14 code | 8 blank | 5 comment | 0 complexity | 4150e515490e16957b7d0a6039e5fb11 MD5 | raw file
 1//
 2//  ImageButton.m
 3//
 4//  Created by Karl Stenerud on 10-05-29.
 5//
 6
 7#import "ImageButton.h"
 8
 9
10#pragma mark ImageButton
11
12@implementation ImageButton
13
14#pragma mark Object Management
15
16+ (id) buttonWithImageFile:(NSString*) filename target:(id) target selector:(SEL) selector
17{
18	return [[[self alloc] initWithImageFile:filename target:target selector:selector] autorelease];
19}
20
21- (id) initWithImageFile:(NSString*) filename target:(id) targetIn selector:(SEL) selectorIn
22{
23	CCSprite* sprite = [CCSprite spriteWithFile:filename];
24	return [super initWithTouchablePortion:sprite target:targetIn selector:selectorIn];
25}
26
27@end