-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPathModel.m
More file actions
39 lines (28 loc) · 749 Bytes
/
Copy pathPathModel.m
File metadata and controls
39 lines (28 loc) · 749 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
//
// PathModel.m
// Scribbler
//
// Created by Thomas Nägele on 17.07.10.
// Copyright 2010 xonic. All rights reserved.
//
#import "PathModel.h"
@implementation PathModel
@synthesize path, color, isAffectedByScrollingAndResizing, creationDate, undoDate, redoDate;
- (id)initWithPath:(NSBezierPath *)thePath andColor:(NSColor *)theColor
{
if (![super init])
return nil;
if(thePath == nil || theColor == nil){
NSLog(@"PathModel/initWithPath:thePath andColor:andColor - ERROR: one of the parameters was nil.");
[self release];
return nil;
}
path = [thePath retain];
color = [theColor retain];
creationDate = nil;
undoDate = nil;
redoDate = nil;
isAffectedByScrollingAndResizing = NO;
return self;
}
@end