-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChange.m
More file actions
43 lines (36 loc) · 819 Bytes
/
Change.m
File metadata and controls
43 lines (36 loc) · 819 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
//
// Change.m
// Appcaster
//
// Created by Sean Dougall on 12/17/10.
// Copyright 2010 Figure 53. All rights reserved.
//
#import "Change.h"
#import "DataModel.h"
@implementation Change
@synthesize changeType = _changeType;
@synthesize notes = _notes;
- (id) init
{
if (self = [super init])
{
self.changeType = kChangeTypeUnspecified;
self.notes = nil;
}
return self;
}
- (id) initWithCoder: (NSCoder *) decoder
{
if (self = [self init])
{
self.changeType = [decoder decodeIntegerForKey:@"changeType"];
self.notes = [decoder decodeObjectForKey:@"notes"];
}
return self;
}
- (void) encodeWithCoder: (NSCoder *) coder
{
[coder encodeInteger:self.changeType forKey:@"changeType"];
[coder encodeObject:self.notes forKey:@"notes"];
}
@end