Adobe After Effects Plugin With Cocoa (Overriding malloc)

Posted by mustISignUp on Stack Overflow See other posts from Stack Overflow or by mustISignUp
Published on 2010-04-08T09:04:57Z Indexed on 2010/04/08 14:13 UTC
Read the original article Hit count: 282

Filed under:
|
|

Messing about a bit, i have a working Adobe After Effects plugin with a bit of Obj-c / Cocoa in it (NSArray and custom objects - not ui stuff). The SDK guide states:-

Always use After Effects memory allocation functions. In low-memory conditions (such as during RAM preview), it’s very important that plug-ins not compete with After Effects for OS memory, and deal gracefully with out-of-memory conditions. Failing to use our functions can cause lock-ups, crashes, and tech support calls. Don’t do that. If you’re wrapping existing C++ code, overloading new and delete to use our functions will save substantial reimplementation. On Windows, derive all classes from a common base class which implements new and delete.

so my question.. is something compatible with the above statement possible in Obj-c?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about osx