Platforms to show: All Mac Windows Linux Cross-Platform
FAQ.How to avoid leaks with Cocoa functions?
Answer: You can try this code on Mac OS X:
With Xojo 2009r4 the code above should not be needed as Xojo runtime does automatically handle the NSAutoreleasePools for you. For older Xojo versions you need to use code with a timer with the action event above to avoid memory leaks.
Please do not use Xojo 2009r4 and newer with plugins before version 9.5. You can get crashes there which typically show a line with a objc_msgSend call.