Re: Checkboxes and NSBox titles
Re: Checkboxes and NSBox titles
- Subject: Re: Checkboxes and NSBox titles
- From: Jim Correia <email@hidden>
- Date: Wed, 13 Jun 2001 10:18:11 -0400
On Wednesday, June 13, 2001, at 09:43 AM, John Hvrnkvist wrote:
id val = [someObject getVal];
[somObject setVal:newVal];
[val doSomething]; // but now val is a dangling pointer because val
was released in setVal
No, you should NOT count on that.
I thought that was the contract foundation objects agreed to. I'll see
if I can find the reference in the docs I am thinking off.
Using the auto release pool should be avoided; their use can blow up
the footprint of a program immensely.
Like anything, there is no silver bullet. I'm sure there are
appropriate times to use the autorelease pool though.