On 12/15/09 11:46 AM, Jean-Daniel Dupas said:

>«Mac OS X implements a highly-tuned, threadsafe allocation library,
>providing standard implementations of the malloc,calloc, realloc, and
>free routines, among others. If you are allocating memory using older
>routines such as NewPtr or NewHandle, you should change your code to use
>malloc instead. The end result is the same since most legacy routines
>are now wrappers for malloc anyway.»
>
>from http://developer.apple.com/mac/library/documentation/Performance/
>Conceptual/ManagingMemory/Articles/MemoryAlloc.html

I would think one place that using NewHandle() is still the best idea is
when an API requires a handle.  This is the case for many QuickTime
APIs, and the OP did mention using QuickTime.  Another would be the
Alias Manager.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to