tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

.add on non-iOS platforms #80

Closed tonylukasavage closed 9 years ago

tonylukasavage commented 9 years ago

Currently the .add code on non-iOS systems will copy the files to Ti.Filesystem.applicationDataDirectory. This makes it trickier to add say an image file and then use it in a createImageView() call.

ios

> .add pic.jpg
undefined
> var image = Ti.UI.createImageView({ image: 'pic.jpg' }); 
undefined

android

> .add pic.jpg
undefined
> var image = Ti.UI.createImageView({ image: Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'pic.jpg') }); 
undefined
tonylukasavage commented 9 years ago

This was resolved in #86