-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBPScene.m
37 lines (31 loc) · 866 Bytes
/
BPScene.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#import "BPScene.h"
#import "BPUtl.h"
@implementation BPScene
@synthesize uid=_uid;
@synthesize name=_name;
@synthesize description=_description;
@synthesize imageFilePath=_imageFilePath;
@synthesize imageSoundDescriptionFilePath=_imageSoundDescriptionFilePath;
@synthesize imageSoundEffectFilePath=_imageSoundEffectFilePath;
-(void)dealloc {
[_imageFilePath release];
[_imageSoundDescriptionFilePath release];
[_imageSoundEffectFilePath release];
[super dealloc];
}
-(id)init {
if (self = [super init]) {
_uid = [BPUtl getUUID];
_imageFilePath = nil;
_imageSoundDescriptionFilePath = nil;
_imageSoundEffectFilePath = nil;
}
return self;
}
- (NSComparisonResult)compare:(BPScene *)scene {
return [self.description compare:scene.description options:NSCaseInsensitiveSearch];
}
-(id)valueForKey:(NSString *)key {
return self.description;
}
@end