tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

.add to add arbitrary files to app at runtime for iOS simulator #41

Closed tonylukasavage closed 10 years ago

tonylukasavage commented 10 years ago

This ticket is specific to implementing this functionality on iOS simulator, as that is all triple currently supports.

Proposed syntax and usage:

$ triple
[launching app]
> .add ./image.png
> .add ./another.png /images/another.png
> var win = Ti.UI.createWindow({ backgroundImage: '/image.png' });
undefined
> win.backgroundImage = '/images/another.png';
'/images/another.png'
> win.open()
undefined

In the above sample, image.png is copied to the repl app's Resources folder and another.png is copied to /images/another.png.

mattapperson commented 10 years ago

Due to the main app dir being read only, we will need a module/serious hacking/a timob ticket for some kind of flag to change the default file location

mattapperson commented 10 years ago

What direction would you like to pick?

tonylukasavage commented 10 years ago

I'm going to take this one. I'm tightening the scope to just the iOS simulator and have a very specific way I want to do this one.