Using Xcode on Mac

Hi,

I’m following this tutorial by three dashes: TouchDesigner _05 Gradient Waves - YouTube

I’m trying to edit the glsl2 vertex and my Mac opens up Xcode to do so. I’m not sure if this is what I should be using?
Anyway, I type in as shown in the tutorial, click save and close, and it doesn’t seem to have done anything.

Does anyone have any info or a video on this process??

Many thanks!

If you haven’t set an editor for DATs in the preferences, files will be opened according to your system-wide preferences for their filetype - hence Xcode opening .vert files. You can set an alternative text editor to be used for all DATs in the preferences (TouchDesigner > Settings… > DATs).

I tested using Xcode 14.3 on macOS 13.3.1 here and saving in Xcode correctly updates the DAT in TouchDesigner - if you don’t see saved changes being reflected in the DAT, can you let us know which versions of Xcode, macOS and TouchDesigner you have installed?