Memory management of objects created from Applescript?
Memory management of objects created from Applescript?
- Subject: Memory management of objects created from Applescript?
- From: "Ujwal S. Sathyam" <email@hidden>
- Date: Sat, 15 Mar 2003 12:33:18 -0800
Hi,
I have added scripting support to an existing Cocoa app, and it works fairly well. However, I am not clear on how to manage memory when an Applescript instantiates an object with
set myobj to (make new <foo>)
This causes a new object of class <foo> to be instantiated.
Who is responsible for getting rid of myobj? Does the script have to call
delete myobj
All the scripts I have looked at use "make new", but not "delete".
Any insights?
Thanks,
Ujwal
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.