Target not working???
Mark Smith
mark at maseurope.net
Mon Mar 27 08:04:59 EST 2006
Great! Hope it works! :)
Best,
Mark
On 27 Mar 2006, at 13:59, David Burgun wrote:
> Hi Mark,
>
> I was just pondering this problem when your post arrived!
>
> All I can say is - FANTASTIC! This is definitely the way to go! I
> hadn't thought of explicitly sending to the file name (long name)
> of the stack, but of course it it will work! It also fits in nicely
> to what I was trying to do *AND* results in a lot less code!
>
> Thanks again for this and all the other times!
>
> All the Best
> Dave
>
> On 27 Mar 2006, at 13:47, Mark Smith wrote:
>
>> Since a stack that is in use is available to all other stacks
>> (it's script has been inserted into back), maybe it would be
>> better simply for any stack that needs to use the libStack
>> to'register' and 'deregister' with the libStack, which can then
>> put itself in and out of use as necessary.
>>
>> in a client stack, for example
>>
>> on openStack
>> put the long name of me into myName
>> send "libStackregister myName" to stack "/Users/Dave/Desktop/
>> TestLib/Lib.rev"
>> pass openStack
>> end openStack
>>
>> on closeStack
>> put the long name of me into myName
>> send "libStackDeregister myName" to stack "/Users/Dave/Desktop/
>> TestLib/Lib.rev"
>> pass closeStack
>> in the libStack
>>
>> and in the libStack
>>
>> on libStackRegister tClient
>> set the clients of me to the clients of me & cr & tClient
>> start using me
>> end libStackRegister
>>
>> on libStackDeregister tClient
>> put the clients of me into cList
>> get lineOffset(tClient,cList)
>> if it > 0 then delete line it of cList
>> set the clients of me to cList
>> if the clients of me is empty then stop using me
>> end libStackDregister
>>
>>
>> Mark
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list