mirror of
https://github.com/aufflick/Catakig.git
synced 2024-06-09 20:29:31 +00:00
18 lines
418 B
Objective-C
18 lines
418 B
Objective-C
#import "MyUtils.h"
|
|
|
|
@implementation NSMovie (MyUtils)
|
|
//---------------------------------------------------------------------------
|
|
|
|
- (id)InitWithResource:(NSString*)fname
|
|
{
|
|
NSURL* url = [NSURL fileURLWithPath:[fname PathForResource]];
|
|
|
|
if (url == nil)
|
|
return [self Release];
|
|
|
|
return [self initWithURL:url byReference:YES];
|
|
}
|
|
|
|
//---------------------------------------------------------------------------
|
|
@end
|