Custom UI by Max issue with Mac remote path
All  1  2-3

Previous
Next
 From:  Michael Gibson
7054.2 In reply to 7054.1 
Hi Chipp - the web browser engine that MoI has embedded in it for the UI display probably does not know about UNIX paths and so that's probably what you are running into there.

The regular MoI UI does not use file:// paths at all and instead uses a special moi:// protocol which knows to load things from directories within MoI's own application package.

The system that MoI uses for running Windows code on the Mac can use a pretend z: drive to access things on the UNIX file system, you might try putting in a file:// path using a z: drive like this:

file:///z:/Users/chipp/Dropbox/Moi/ObjectsDONTMOVE

Does it work like that?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  chippwalters
7054.3 

Yup!


That's the ticket. So for the record,, to get this to work on Macs with custom paths, one would need to change in ObjLibrary.menu.htm (in drive_c/moi/ui/customui/mods/) the following line:
code:
if ( moi.filesystem.fileExists (iconname) ) { document.write ('<div class="preview"><img class="icon" src="'+ iconname.split("\\").join('/') +'?'+randomID+'"></div>'); }

to:
code:
if ( moi.filesystem.fileExists (iconname) ) { document.write ('<div class="preview"><img class="icon" src="file:///z:'+ iconname.split("\\").join('/') +'?'+randomID+'"></div>'); }

(note the addition of "file:///z")
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2-3