diff --git a/Medianno.xcodeproj/project.pbxproj b/Medianno.xcodeproj/project.pbxproj index 98fd147..cf369b3 100644 --- a/Medianno.xcodeproj/project.pbxproj +++ b/Medianno.xcodeproj/project.pbxproj @@ -17,6 +17,11 @@ 950BB68713F1F26200D8E669 /* MADocument.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 950BB68513F1F26200D8E669 /* MADocument.xcdatamodeld */; }; 950BB68F13F1F29D00D8E669 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 950BB68D13F1F29D00D8E669 /* CoreData.framework */; }; 950BB69013F1F29D00D8E669 /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 950BB68E13F1F29D00D8E669 /* QTKit.framework */; }; + 950BB69713F2C6B300D8E669 /* MAFolder.m in Sources */ = {isa = PBXBuildFile; fileRef = 950BB69613F2C6B300D8E669 /* MAFolder.m */; }; + 950BB69A13F2C6B400D8E669 /* MATag.m in Sources */ = {isa = PBXBuildFile; fileRef = 950BB69913F2C6B400D8E669 /* MATag.m */; }; + 950BB69D13F2C6B400D8E669 /* MAAnno.m in Sources */ = {isa = PBXBuildFile; fileRef = 950BB69C13F2C6B400D8E669 /* MAAnno.m */; }; + 950BB6A013F2C6B400D8E669 /* MAMedia.m in Sources */ = {isa = PBXBuildFile; fileRef = 950BB69F13F2C6B400D8E669 /* MAMedia.m */; }; + 950BB6A313F2C6B400D8E669 /* MATagDescription.m in Sources */ = {isa = PBXBuildFile; fileRef = 950BB6A213F2C6B400D8E669 /* MATagDescription.m */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -34,6 +39,16 @@ 950BB68613F1F26200D8E669 /* MADocument.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = MADocument.xcdatamodel; sourceTree = ""; }; 950BB68D13F1F29D00D8E669 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; 950BB68E13F1F29D00D8E669 /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = System/Library/Frameworks/QTKit.framework; sourceTree = SDKROOT; }; + 950BB69513F2C6B300D8E669 /* MAFolder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MAFolder.h; sourceTree = ""; }; + 950BB69613F2C6B300D8E669 /* MAFolder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MAFolder.m; sourceTree = ""; }; + 950BB69813F2C6B400D8E669 /* MATag.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MATag.h; sourceTree = ""; }; + 950BB69913F2C6B400D8E669 /* MATag.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MATag.m; sourceTree = ""; }; + 950BB69B13F2C6B400D8E669 /* MAAnno.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MAAnno.h; sourceTree = ""; }; + 950BB69C13F2C6B400D8E669 /* MAAnno.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MAAnno.m; sourceTree = ""; }; + 950BB69E13F2C6B400D8E669 /* MAMedia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MAMedia.h; sourceTree = ""; }; + 950BB69F13F2C6B400D8E669 /* MAMedia.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MAMedia.m; sourceTree = ""; }; + 950BB6A113F2C6B400D8E669 /* MATagDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MATagDescription.h; sourceTree = ""; }; + 950BB6A213F2C6B400D8E669 /* MATagDescription.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MATagDescription.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -82,6 +97,16 @@ children = ( 950BB67C13F1F26200D8E669 /* MADocument.h */, 950BB67D13F1F26200D8E669 /* MADocument.m */, + 950BB6A113F2C6B400D8E669 /* MATagDescription.h */, + 950BB6A213F2C6B400D8E669 /* MATagDescription.m */, + 950BB69E13F2C6B400D8E669 /* MAMedia.h */, + 950BB69F13F2C6B400D8E669 /* MAMedia.m */, + 950BB69B13F2C6B400D8E669 /* MAAnno.h */, + 950BB69C13F2C6B400D8E669 /* MAAnno.m */, + 950BB69813F2C6B400D8E669 /* MATag.h */, + 950BB69913F2C6B400D8E669 /* MATag.m */, + 950BB69513F2C6B300D8E669 /* MAFolder.h */, + 950BB69613F2C6B300D8E669 /* MAFolder.m */, 950BB67F13F1F26200D8E669 /* MADocument.xib */, 950BB68213F1F26200D8E669 /* MainMenu.xib */, 950BB68513F1F26200D8E669 /* MADocument.xcdatamodeld */, @@ -169,6 +194,11 @@ 950BB67713F1F26200D8E669 /* main.m in Sources */, 950BB67E13F1F26200D8E669 /* MADocument.m in Sources */, 950BB68713F1F26200D8E669 /* MADocument.xcdatamodeld in Sources */, + 950BB69713F2C6B300D8E669 /* MAFolder.m in Sources */, + 950BB69A13F2C6B400D8E669 /* MATag.m in Sources */, + 950BB69D13F2C6B400D8E669 /* MAAnno.m in Sources */, + 950BB6A013F2C6B400D8E669 /* MAMedia.m in Sources */, + 950BB6A313F2C6B400D8E669 /* MATagDescription.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Medianno/MAAnno.h b/Medianno/MAAnno.h new file mode 100644 index 0000000..0d4d0f5 --- /dev/null +++ b/Medianno/MAAnno.h @@ -0,0 +1,29 @@ +// +// MAAnno.h +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import +#import + +@class MATag; + +@interface MAAnno : NSManagedObject { +@private +} +@property (nonatomic, retain) NSString * location; +@property (nonatomic, retain) NSString * notes; +@property (nonatomic, retain) NSSet *tags; +@property (nonatomic, retain) NSManagedObject *media; +@end + +@interface MAAnno (CoreDataGeneratedAccessors) + +- (void)addTagsObject:(MATag *)value; +- (void)removeTagsObject:(MATag *)value; +- (void)addTags:(NSSet *)values; +- (void)removeTags:(NSSet *)values; +@end diff --git a/Medianno/MAAnno.m b/Medianno/MAAnno.m new file mode 100644 index 0000000..aa292f5 --- /dev/null +++ b/Medianno/MAAnno.m @@ -0,0 +1,19 @@ +// +// MAAnno.m +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import "MAAnno.h" +#import "MATag.h" + + +@implementation MAAnno +@dynamic location; +@dynamic notes; +@dynamic tags; +@dynamic media; + +@end diff --git a/Medianno/MADocument.xcdatamodeld/MADocument.xcdatamodel/contents b/Medianno/MADocument.xcdatamodeld/MADocument.xcdatamodel/contents index 2549655..1816625 100644 --- a/Medianno/MADocument.xcdatamodeld/MADocument.xcdatamodel/contents +++ b/Medianno/MADocument.xcdatamodeld/MADocument.xcdatamodel/contents @@ -1,29 +1,29 @@ - + - + - + - + - + diff --git a/Medianno/MAFolder.h b/Medianno/MAFolder.h new file mode 100644 index 0000000..b85f638 --- /dev/null +++ b/Medianno/MAFolder.h @@ -0,0 +1,33 @@ +// +// MAFolder.h +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import +#import + +@class MAFolder; + +@interface MAFolder : NSManagedObject { +@private +} +@property (nonatomic, retain) NSString * name; +@property (nonatomic, retain) MAFolder *parent; +@property (nonatomic, retain) NSSet *children; +@property (nonatomic, retain) NSSet *contents; +@end + +@interface MAFolder (CoreDataGeneratedAccessors) + +- (void)addChildrenObject:(MAFolder *)value; +- (void)removeChildrenObject:(MAFolder *)value; +- (void)addChildren:(NSSet *)values; +- (void)removeChildren:(NSSet *)values; +- (void)addContentsObject:(NSManagedObject *)value; +- (void)removeContentsObject:(NSManagedObject *)value; +- (void)addContents:(NSSet *)values; +- (void)removeContents:(NSSet *)values; +@end diff --git a/Medianno/MAFolder.m b/Medianno/MAFolder.m new file mode 100644 index 0000000..4048f6f --- /dev/null +++ b/Medianno/MAFolder.m @@ -0,0 +1,19 @@ +// +// MAFolder.m +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import "MAFolder.h" +#import "MAFolder.h" + + +@implementation MAFolder +@dynamic name; +@dynamic parent; +@dynamic children; +@dynamic contents; + +@end diff --git a/Medianno/MAMedia.h b/Medianno/MAMedia.h new file mode 100644 index 0000000..a92f60e --- /dev/null +++ b/Medianno/MAMedia.h @@ -0,0 +1,30 @@ +// +// MAMedia.h +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import +#import + +@class MAAnno, MAFolder; + +@interface MAMedia : NSManagedObject { +@private +} +@property (nonatomic, retain) NSString * media; +@property (nonatomic) NSTimeInterval date; +@property (nonatomic, retain) NSString * notes; +@property (nonatomic, retain) NSSet *annotations; +@property (nonatomic, retain) MAFolder *folder; +@end + +@interface MAMedia (CoreDataGeneratedAccessors) + +- (void)addAnnotationsObject:(MAAnno *)value; +- (void)removeAnnotationsObject:(MAAnno *)value; +- (void)addAnnotations:(NSSet *)values; +- (void)removeAnnotations:(NSSet *)values; +@end diff --git a/Medianno/MAMedia.m b/Medianno/MAMedia.m new file mode 100644 index 0000000..4ec3787 --- /dev/null +++ b/Medianno/MAMedia.m @@ -0,0 +1,21 @@ +// +// MAMedia.m +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import "MAMedia.h" +#import "MAAnno.h" +#import "MAFolder.h" + + +@implementation MAMedia +@dynamic media; +@dynamic date; +@dynamic notes; +@dynamic annotations; +@dynamic folder; + +@end diff --git a/Medianno/MATag.h b/Medianno/MATag.h new file mode 100644 index 0000000..9fa7c68 --- /dev/null +++ b/Medianno/MATag.h @@ -0,0 +1,19 @@ +// +// MATag.h +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import +#import + + +@interface MATag : NSManagedObject { +@private +} +@property (nonatomic, retain) NSManagedObject *tag; +@property (nonatomic, retain) NSManagedObject *annotation; + +@end diff --git a/Medianno/MATag.m b/Medianno/MATag.m new file mode 100644 index 0000000..4647347 --- /dev/null +++ b/Medianno/MATag.m @@ -0,0 +1,16 @@ +// +// MATag.m +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import "MATag.h" + + +@implementation MATag +@dynamic tag; +@dynamic annotation; + +@end diff --git a/Medianno/MATagDescription.h b/Medianno/MATagDescription.h new file mode 100644 index 0000000..1a621f9 --- /dev/null +++ b/Medianno/MATagDescription.h @@ -0,0 +1,28 @@ +// +// MATagDescription.h +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import +#import + +@class MATag; + +@interface MATagDescription : NSManagedObject { +@private +} +@property (nonatomic, retain) NSString * name; +@property (nonatomic, retain) NSString * notes; +@property (nonatomic, retain) NSSet *uses; +@end + +@interface MATagDescription (CoreDataGeneratedAccessors) + +- (void)addUsesObject:(MATag *)value; +- (void)removeUsesObject:(MATag *)value; +- (void)addUses:(NSSet *)values; +- (void)removeUses:(NSSet *)values; +@end diff --git a/Medianno/MATagDescription.m b/Medianno/MATagDescription.m new file mode 100644 index 0000000..a4a317f --- /dev/null +++ b/Medianno/MATagDescription.m @@ -0,0 +1,18 @@ +// +// MATagDescription.m +// Medianno +// +// Created by Matthias Neeracher on 8/10/11. +// Copyright (c) 2011 Apple Computer. All rights reserved. +// + +#import "MATagDescription.h" +#import "MATag.h" + + +@implementation MATagDescription +@dynamic name; +@dynamic notes; +@dynamic uses; + +@end