Akira-Hayasaka / ofxGLEditor

Script editor for oF Live Coding
GNU General Public License v2.0
100 stars 16 forks source link

How to save the currently loaded file using ofxEditor? #12

Closed JoshuaBatty closed 9 years ago

JoshuaBatty commented 9 years ago

Hi I see that oxGLEditor has a saveFile() method but I can't seem to work out how to call it from ofxEditor.

I'm sure I must be missing something as it seems weird to be able to load a file into ofxEditor and not be able to save the result once you have modified it on screen.....? Cheers.

danomatika commented 9 years ago

ofxEditor is the core of the simple text editor while ofxGLEditor has the "bells and whistles". You can simply do a getText() into an ofBuffer and save it one line. However, I can see your point and I'll look into it.

JoshuaBatty commented 9 years ago

Great thanks @danomatika. Much more usable now for my purposes.