[EDIT: There's now a tutorial that explains how to establish one-click links between your computer and ND1. This supersedes most of the information in this thread. See http://naivedesign.com/ND1/Computer_Link.html
Here're the steps to change the ⊛⇩ (VISIT)
key (or any other key of your choosing) into a "get code from my computer and display"-key. This enables you to code on your computer and test/run on ND1 one second later.
This solution let's you use your favorite editor and requires no custom server setup.
Pre-requisite: Your computer and your iOS device need to be on the same network, and you need to have sharing of files via http:// requests enabled on your computer. (On a Mac, you'd go to System Preferences
and check Web-Sharing
, to do this.)
Steps in ND1:
1) Get or update the Tools
shared folder. (Tap My Data
| Shared Folders
2) Go to Definition
and edit the ⊛⇩ (VISIT) key: replace @visit
with ≪ "http://10.0.1.3/~me/" Tools.getCode ≫
to reflect your networking environment]
Now, here's how you use this:
2) When you're ready to run it on ND1, save your code as a .txt file into the directory that's accessible via the base URL you specified above. (On Mac, that would be ~/Sites
, if your base URL looks like the one above.)
3) On ND1, from within any folder, visit a variable by the name of your file without the .txt extension.
For example: If you saved your file as pascal.txt, you'd visit 'pascal' in ND1. (Enter 'pascal', tap ⊛⇩ (VISIT).)
Your file will be transferred, stored into the variable you specified, and the contents displayed in ND1's scrolling editor.
You can then do further edits on the device, or simply enter and drop.
If you wrote RPL code, transcode characters (\<<, \->, etc.) will be translated into the unicodes that ND1 expects.
You can use this method instead of, or in addition to, having a custom server set-up http://naivedesign.com/ND1/Custom_Server_Setup.html
, which enables one-tap transfers (also via WiFi) of entire folders, between your computer and ND1. Note, that latter requires you to use a JSON editor, while the method given here doesn't.