Bind QTMovieView

This commit is contained in:
Matthias Neeracher 2011-08-12 20:31:35 +02:00
parent e3cdf6d868
commit d38639bdc9
3 changed files with 340 additions and 309 deletions

View File

@ -8,6 +8,7 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <CoreData/CoreData.h> #import <CoreData/CoreData.h>
#import <QTKit/QTKit.h>
@class MAAnno, MAFolder; @class MAAnno, MAFolder;
@ -20,6 +21,10 @@
@property (nonatomic, retain) NSString * notes; @property (nonatomic, retain) NSString * notes;
@property (nonatomic, retain) NSSet *annotations; @property (nonatomic, retain) NSSet *annotations;
@property (nonatomic, retain) MAFolder *folder; @property (nonatomic, retain) MAFolder *folder;
- (QTMovie *)movie;
+ (NSSet *)keyPathsForValuesAffectingMovie;
@end @end
@interface MAMedia (CoreDataGeneratedAccessors) @interface MAMedia (CoreDataGeneratedAccessors)

View File

@ -19,4 +19,14 @@
@dynamic annotations; @dynamic annotations;
@dynamic folder; @dynamic folder;
+ (NSSet *)keyPathsForValuesAffectingMovie
{
return [NSSet setWithObject:@"media"];
}
- (QTMovie *)movie
{
return [QTMovie movieWithFile:self.media error:nil];
}
@end @end

File diff suppressed because it is too large Load Diff