Widget structure questions
Peter Haworth
pete at lcsql.com
Sat Oct 10 15:44:33 EDT 2015
Great, thanks Mark, that's very useful. Like you, I'm parsing the
manifest.xml files myself right now but will check into the
revIDEExtensionProperty and revIDEExtensionsFetchMetadata() handlers.
I'm getting the path to the user extensions folder the same way as
you. Strange that they'd advise you not to use the official way to get
those paths, especially the system extensions since it will be different on
each platform.
Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
On Sat, Oct 10, 2015 at 12:36 PM, Mark Wieder <mwieder at ahsoftware.net>
wrote:
> On 10/10/2015 11:49 AM, Peter Haworth wrote:
>
>> Thanks Mark. Do you happen to know if there are any handlers which return
>> these paths or even the information about each widget from its
>> manifest.xml
>> file? It's easy enough to go through all the files myself and parse the
>> xml myself but probably safer to use official handlers if they exist.
>>
>
> I had similar questions yesterday:
> http://forums.livecode.com/viewtopic.php?f=93&t=25530
>
> I'm currently parsing the xml myself since I've already created the xml
> tree by the time I need the info, but I'm using the technique in the
> revIDEExtensionsFetchMetadata() function to get the metadata. That way I
> avoid the overhead of creating the xml tree again, but I will probably
> switch to doing that now that I've gotten the word that it's officially
> condoned.
>
> Here's how I get the path to user extensions:
>
> functon LC8UserExtensionsPath
> put revEnvironmentUserPluginsPath() into tPath
> replace quote with empty in tPath
> set the itemdelimiter to "/"
> put "Extensions" into item -1 of tPath
> return tPath
> end LC8UserExtensionsPath
>
> You can also try revIDESpecialFolderPath("extensions") and
> revIDESpecialFolderPath("user extensions"), which work but I've been
> advised not to use them.
>
>
> --
> Mark Wieder
> ahsoftware at gmail.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list