PDetsFromPath xojo macOS

Hello!

In the xojo mac examples, when debugging, it says to use:

#If DebugBuild PDetsFromPath("")#Endif

to load the Turboactivate.dat file.But that function does not seem to be available in the xojo version?

We haven't updated the Xojo documentation to match the revamped 4.0 code. So, what you would need to do is something like this in the "Window1" "Open" event handler:

#If DebugBuild ta = new TurboActivate("18324776654b3946fc44a5f3.49025204", "/location/to/TurboActivate.dat")#else ta = new TurboActivate("18324776654b3946fc44a5f3.49025204")#Endif

So, for your debug build you're creating a TA object with a hardcoded TurboActivate.dat file path. For your release build you're loading the TurboActivate.dat from wherever your executable might be.

Does that make sense?

yes, that helps, thank you

/Ronny