-
Notifications
You must be signed in to change notification settings - Fork 1
/
AWiPhotoDocument.m
43 lines (34 loc) · 899 Bytes
/
AWiPhotoDocument.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
38
39
40
41
42
43
//
// AWiPhotoPhoto.m
// AWiPhotoController
//
// Created by Alex Winston on 4/11/10.
// Copyright 2010 Alex Winston. All rights reserved.
//
#import "AWiPhotoDocument.h"
@interface AWiPhotoDocument (Private)
NSString *_filePath;
@end
@implementation AWiPhotoDocument
@synthesize id=_id;
@synthesize caption=_caption;
@synthesize comments=_comments;
@synthesize createdDate=_createdDate;
@synthesize documentType=_documentType;
@synthesize editState=_editState;
@synthesize fileData=_fileData;
@synthesize thumbnailImage=_thumbnailImage;
+ (AWiPhotoDocument *)documentWithPath:(NSString*)filePath {
return [[[self alloc] initWithPath:filePath] autorelease];
}
- (AWiPhotoDocument *)initWithPath:(NSString *)filePath {
if ((self = [super init])) {
_filePath = [[filePath copy] retain];
}
return self;
}
- (void)dealloc {
[_filePath release];
[super dealloc];
}
@end