-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPBGLesson.m
More file actions
44 lines (35 loc) · 733 Bytes
/
PBGLesson.m
File metadata and controls
44 lines (35 loc) · 733 Bytes
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
38
39
40
41
42
43
44
//
// PBGLesson.m
// Neurosis
//
// Created by Patrick B. Gibson on 05/04/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "PBGLesson.h"
@implementation PBGLesson
@synthesize imageAsArray;
@synthesize image;
@synthesize meaning;
- (id)initWithImagePath:(NSString *)ip meaning:(NSString *)m index:(int)i
{
self = [super init];
if (self != nil) {
imagePath = [ip retain];
meaning = [m retain];
image = [[NSImage alloc] initWithContentsOfFile:imagePath];
}
return self;
}
- (void)addArrayRep:(NSArray *)a
{
imageAsArray = [a retain];
}
- (void)dealloc
{
if (imageAsArray) { [imageAsArray release]; }
[image release];
[imagePath release];
[meaning release];
[super dealloc];
}
@end