Created
February 9, 2009 15:08
-
-
Save ELLIOTTCABLE/60817 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError { | |
QTDataReference *dataRef = [QTDataReference dataReferenceWithDataRefData:data type:typeName]; | |
QTMovie *aMovie = [QTMovie movieWithDataReference:dataRef error:outError]; | |
if ( outError != NULL ) { | |
NSLog(@"MyDocument -readFromData: ofType:%@ error:%@]", typeName, *outError); | |
return NO; | |
} | |
[self setMovie:aMovie]; | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment