On Aug 10, 2010, at 9:12 AM, Alastair Houghton wrote:
> That said, is the part about objects escaping zones really true for *NS*Zone?
> It's true for malloc zones, for sure, but the docs for NSRecycleZone say:
>
> Frees zone after adding any of its pointers still in use to the default zone.
>
On Aug 10, 2010, at 6:55 AM, Bill Bumgarner wrote:
>
> On Aug 10, 2010, at 1:31 AM, Alastair Houghton wrote:
>
>> Sounds like a bug to me. While zones are *discouraged* (they're very
>> definitely an advanced topic and easily misused), I don't think they're
>> actually deprecated.
>
> Their
In an effort to simplify the example, I may have made it more complicated.
I'm actually trying to create an NSSecureTextField, but I tried to make
the example more apple-vs-apples, by showing a c string and an NSString
back to back.
I tried with:
NSSecureTextField
NSTextField
NSButton
NSStr
On 10 Aug 2010, at 14:55, Bill Bumgarner wrote:
> On Aug 10, 2010, at 1:31 AM, Alastair Houghton wrote:
>
>> Sounds like a bug to me. While zones are *discouraged* (they're very
>> definitely an advanced topic and easily misused), I don't think they're
>> actually deprecated.
>
> Their use is
On Aug 10, 2010, at 1:31 AM, Alastair Houghton wrote:
> Sounds like a bug to me. While zones are *discouraged* (they're very
> definitely an advanced topic and easily misused), I don't think they're
> actually deprecated.
Their use is deprecated and should be documented as such.
Zones wer
On 10 Aug 2010, at 05:18, charlie wrote:
> As you can see, the c string is successfully allocated from space in the
> custom zone. But the NSString object is allocated from the default zone,
> despite having called +[NSObject allocWithZone:].
>
> Anyone know the trick to this?
Sounds like a b
On Aug 9, 2010, at 21:18, charlie wrote:
> NSString * string = [[NSString allocWithZone:zone] initWithFormat:@"abc!!!"];
> As you can see, the c string is successfully allocated from space in the
> custom zone. But the NSString object is allocated from the default zone,
> despite having called
Having trouble getting objects to use a specific zone.
The following test code snippet demonstrates the problem I'm having:
NSZone * zone = NSCreateZone(vm_page_size * 2, vm_page_size, YES);
if (zone)
{
NSSetZoneName(zone, @"IN THE ZONE!!!");