Page 1 of 1

Plug-in

Posted: Thu Feb 06, 2014 3:49 pm
by Peter@multidesk.se
How do I build a plug-in for Live code, so that my customers can use my functions and calculations in their own programming without seeing my code.

///Peter

Re: Plug-in

Posted: Thu Feb 06, 2014 3:57 pm
by Thierry
Hi Peter,

A plugin, in Livecode's terminology is a stack that is integrated in the IDE.
You can access them via the IDE menu: Development -> Plugins

Is that what you want to do ?

If you want to hide your livecode scripts, well, you can protect the stack
where your code is.

Ummm, only in the business edition of LC.

Regards,

Thierry

Re: Plug-in

Posted: Thu Feb 06, 2014 10:39 pm
by Peter@multidesk.se
I have a stack that contains a number of cards that I want my customers to be able to modify the appearance of. They shall have the ability to add graphics, text fields, buttons, and their own code to their personal preference. These modifications may only take place on the cards, and not on the stack. I have all the functions and commands as stack script and want in any way, prevent these to be seen by my clients, who want to customize the application to fit their business.
In brief, I have control of how the app communicates with the database, and how these calls are designed. I have a basic solution on how I think the data is to be used, but the customer can change this on its own.
How can I accomplish this in the best way?

I have the Business Edition of LC.

///Peter

Re: Plug-in

Posted: Fri Feb 07, 2014 7:41 am
by Thierry
Hi Peter,

Check
start using stack "mylibrary"
in the dictionnary.

and you can set a password to your stack..

Does that make sense?

Thierry

Re: Plug-in

Posted: Fri Feb 07, 2014 10:45 am
by Peter@multidesk.se
How does that work when I build a stand-alone, for example, iOS or Android?
Somehow I have to implement the first stack script with my standalone for this to work.

/ Peter

Re: Plug-in

Posted: Fri Feb 07, 2014 11:25 am
by Thierry
Peter@multidesk.se wrote:How does that work when I build a stand-alone, for example, iOS or Android?
Somehow I have to implement the first stack script with my standalone for this to work.
When preparing the build settings you can add stacks to your main stack.

Don't see any problems but may be I'm missing the point..

Regards,

Thierry

Re: Plug-in

Posted: Fri Feb 07, 2014 9:16 pm
by Simon
Hi Peter,
Why don't you check out how mobGUI does it?
John's stack is added as a sub-stack with the "start using" placed in the main stack.

Simon