Saving/importing custom controls to/from file

Terry Judd tsj at unimelb.edu.au
Mon Nov 8 17:20:03 EST 2010


Yep - several times to make sure - and I checked the clipboard in between.

Terry...


On 9/11/10 9:12 AM, "Monte Goulding" <monte at sweattechnologies.com> wrote:

> 
> On 09/11/2010, at 7:41 AM, Terry Judd wrote:
> 
>> On a whim I tried copying a group and saving the contents of the clipboard
>> (clipboardData[³objects²]) to file. I then cleared the clipboard and set the
>> clipboardData to the file and was able to paste the Œreconstructed¹ object
>> back into my stack. I have to admit that I was surprised that this worked as
>> I always just expected that the clipboard data would just contain some
>> pointers to the copied objects rather than a usable copy of the control. The
>> same also method appears to work for entire cards.
>> 
>> There may? be some benefits in using this approach compared to saving
>> controls in Œlibrary¹ stacks. Is anybody already doing this, and if so what
>> are their experiences (pros and cons)?
> 
> Hi Terry
> 
> I haven't tried but it doesn't seem right to me. Did you quit and restart
> livecode to make sure memory was cleared.
> 
> Cheers
> 
> Monte_______________________________________________
> 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

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne





More information about the use-livecode mailing list