When building a library i notice the xojo_library file is created after both mac and windows builds complete.
Is there a way to add a build script after the library is created so i can move it into another folder etc.
When building a library i notice the xojo_library file is created after both mac and windows builds complete.
Is there a way to add a build script after the library is created so i can move it into another folder etc.
If you’re on macOS, I built Library Studio to control the IDE through the build processes and automate much of my release process. Has a bunch of great features.
This looks like it might be exactly what i need, i will have a play. Cheers
Do you know if you can get the structures from a library to appear in auto complete? I could not, added an issue.
Also what is the best way to handle translations. Eg using modules with localized constants. Do you create constants with very unique names as to ensure no duplicates?
I don’t use structures much at all( at least not in a publicly exposed way), preferring to use classes.
I typically provide properties for users to define their own overrides for strings and localize as they see fit. I’d shy away from embedding localized strings within a library because users can’t modify that for their own applications.
I use structures when working with declares etc.
I have no need to other users to use my librarys, for code separation + building blocks for new apps etc. I think i will just embed them. I am only talking about simple things like OK or Cancel buttons etc. Nothing too crazy.
I was albe to wrap up my macOS Metal classes into a single library with only a few odd things.
Need to soft declare external functions
No private shared methods with references to the class it is in.
I would still provide a means of overriding the strings. If you decide you want or need a string to be even slightly different based on the use case (think of OK/Cancel versus Save/Close or Yes/No), you’d then need to change your library source and recompile just to accomplish that.
I also use structures for declares, but I abstract that away providing classes that I can populate structures from. This gives me the ability to apply validation logic to values and raise exceptions on strange things among other benefits.
If it’s all for your use only, however you wish to implement it is fine, I guess.
Then you are throwing out source code for literally no reason. You will be mad at yourself in 6 years. The way Xojo implemented Libraries, their only use is for commercial distribution.