• 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: dealloc and scarce resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dealloc and scarce resources


  • Subject: Re: dealloc and scarce resources
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 30 Jun 2011 18:39:13 -0700

On Thu, Jun 30, 2011 at 6:34 PM, James Merkel <email@hidden> wrote:
> Then wherever I was sending the -release, I need to also send a separate
>  -close. it could be before or after the release, it doesn't really matter.

No, it really needs to be before the -release. When you call -release,
you relinquish your ownership of that object. It may cease to exist at
that point. It may continue to live for an indeterminate amount of
time. But either way, yes, it's one method call, done before the call
to -release.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: dealloc and scarce resources
      • From: James Merkel <email@hidden>
References: 
 >Re: dealloc and scarce resources (From: James Merkel <email@hidden>)

  • Prev by Date: Re: dealloc and scarce resources
  • Next by Date: Re: dealloc and scarce resources
  • Previous by thread: Re: dealloc and scarce resources
  • Next by thread: Re: dealloc and scarce resources
  • Index(es):
    • Date
    • Thread