Thread: Our UI Manager
View Single Post
04-20-09, 08:40 AM   #134
Ceridan
A Defias Bandit
Join Date: Oct 2008
Posts: 2
Originally Posted by Bomyne View Post
I'm no Java programer but I was under the impression that Java accounted for that directory thing.
Well perhaps... I did not have time when I needed a cross platform implementation in one of my recent school projects, I needed to put something in the %TMP% folder in windows... but I also needed to make it possible on macs and *nix... So I made a small class to act as a OS checker... It's possible however that the Java API provides an abstract class to do the same thing...

(sometimes libraries uses OS specific implementations that further reduce the ability to do cross-platform... unless you create an abstract layer to allow a more OS specific implementations but then you will need to use libraries for the other OSes...).

Last edited by Ceridan : 04-20-09 at 08:48 AM. Reason: weird structure in a paragraph