URL o' my dreams
URL o' my dreams
- Subject: URL o' my dreams
- From: Isaac Sherman <email@hidden>
- Date: Sat, 02 Mar 2002 23:10:22 -0500
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
Because the song to be played is selected somewhere else, I've got it on
disk. I save it using absoluteString, then load it using
myURL=[[NSURL alloc]initFileURLWithPath:path];
I'm not sure where the problem lies. I've also tried saving as path,
fragment, and just plain, but because I'm using writeToFile:atomicly,
neither fragment nor plain save. None of them work. path saves exactly as
it displays above (those were created with absoluteString).
Any suggestions? I'm not certain where my problem lies, but I have a hunch
it's the URL, since my player is very basic. And I just discovered that
typing file://localhost/file:/localhost/Users/charon/Music/SheThinks.mp3
into Explorer brings up an error, but cutting out the first two sections
(other than file://), thus typing this:
file://localhost/Users/charon/Music/SheThinks.mp3
loads the mp3.
TIA,
--
Isaac Sherman
MotaSoft Software
_______________________________________________
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.