Re: URL o' my dreams
Re: URL o' my dreams
- Subject: Re: URL o' my dreams
- From: Andy Lee <email@hidden>
- Date: Sat, 2 Mar 2002 23:33:01 -0500
At 11:10 PM -0500 3/2/02, Isaac Sherman wrote:
>
Has anyone had problems with NSMovieView? I'm not sure where my problems
>
lie, in NSMovieView or NSURL. I'm trying to initialize an NSMovie with my
>
NSURL (which points to an mp3). However, the line
>
movie=[[NSMovie alloc] initWithURL:pathURL byReference: NO];
>
sets movie to nil. My URL should be valid. According to NSLog,
>
The Path is : (using [myURL path])
>
/file:/localhost/Users/charon/Music/SheThinks.mp3
>
The Absolute is: (using [myURL absoluteString])
>
file://localhost/file:/localhost/Users/charon/Music/SheThinks.mp3
>
FWIW, I am able to load a movie from disk like this:
NSURL *url = [NSURL fileURLWithPath:@"/Volumes/FileDrop/Harry-2001-07-custom.mov"];
NSMovie *mov = [[NSMovie alloc] initWithURL:url byReference:YES];
[myMovieView setMovie:mov];
--Andy
P.S. That subject line could be a catchy name for a bookmark management app... ;)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.