• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checkboxes and NSBox titles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Checkboxes and NSBox titles
      • From: John Hörnkvist <email@hidden>
References: 
 >Re: Checkboxes and NSBox titles (From: John Hörnkvist <email@hidden>)

  • Prev by Date: Re: IB key-value oddity...
  • Next by Date: Re: Checkboxes and NSBox titles
  • Previous by thread: Re: Checkboxes and NSBox titles
  • Next by thread: Re: Checkboxes and NSBox titles
  • Index(es):
    • Date
    • Thread