[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSZone pointers
From: |
David Chisnall |
Subject: |
Re: NSZone pointers |
Date: |
Thu, 21 Jul 2011 19:51:34 +0100 |
On 21 Jul 2011, at 14:27, David Chisnall wrote:
> On 21 Jul 2011, at 14:16, Ivan Vučica wrote:
>
>> I didn't even bother looking up what zones are for until now.
>
> They're not used very much anymore, because half of Cocoa is not zone-aware.
> On OS X, zones are opaque, so they're not even very useful, they just act as
> hints for the allocation policy.
Oh, and apparently I missed that in Objective-C 2 they were removed.
+allocWithZone: on OS X now apparently ignores the zone pointer and -zone
always returns the default malloc() zone.
David