[vlc-devel] MacOS X and file references

Felix Paul Kühne fkuehne.videolan at googlemail.com
Sat May 30 19:16:13 CEST 2009


Hello Andre-John

> I noticed a behaviour in VLC, on MacOS X, that doesn't follow the  
> standard behviour on this platform. Basically if I move a file on  
> disc that is already in the playlist, but not playing, then double- 
> clicking the file results and the file not being located. Generally,  
> from my experience, applications try to maintain a reference to the  
> file so that if the file is ever moved on the same disk it will  
> still be locatable. If you use iTunes, for example you will be able  
> to observe this behaviour, if you move an MP3 file on disk.
Good point. This will probably needs fixing in VLC's core. Could you  
create a trac ticket on it?

> the only issue with the approach in the second link, is that it  
> doesn't seem to be pure Cocoa, so it could be a breakage point in  
> Leopard if VLC is made to be 64-bit. I will ask around to find out  
> if there is a Cocoa equivalent of this functionality.

That's no big deal. The File Manager was moved to CoreServices in Mac  
OS X 10.4 and will stay functional with little exceptions in future  
releases of Mac OS X. I'd strongly encourage you to write a patch on  
this. A 64bit adaption could be done afterwards. It should be trivial  
or perhaps not even necessary. Sticking to CoreServices's plain C API  
would also be a good idea and a lot cleaner, so you shouldn't even use  
Cocoa if you ask me ;-)

Best regards,

Felix



More information about the vlc-devel mailing list