Re: LCB library tutorials?

2016-02-24 Thread Peter TB Brett

On 23/02/2016 19:36, Stephen MacLean wrote:

Looking to see if anyone has put up a tutorial for making an LCB library 
extension?

I’ve been able to find Trevor Devore’s url_parser lib on github, but haven’t 
seen much else.

If no tutorials, can someone describe the differences that need to be changed 
from widget to library?


Hi Stephen,

You can look at the JSON Library extension that we ship with LiveCode 8 
as an example of an LCB library.  The source code is here on GitHub:


https://github.com/livecode/livecode/blob/develop/extensions/libraries/json/json.lcb

Basically, you declare the module as a "library" instead of a "widget".

All "public" handlers are then added to the LiveCode message path, after 
everything else.


That's it!

Peter

--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

LCB library tutorials?

2016-02-23 Thread Stephen MacLean
Hi All,

Looking to see if anyone has put up a tutorial for making an LCB library 
extension?

I’ve been able to find Trevor Devore’s url_parser lib on github, but haven’t 
seen much else.

If no tutorials, can someone describe the differences that need to be changed 
from widget to library?

Thanks,

Steve MacLean

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode