• 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: TabView / TabViewItem / Inserting Views Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TabView / TabViewItem / Inserting Views Problem


  • Subject: Re: TabView / TabViewItem / Inserting Views Problem
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 30 Oct 2001 10:49:26 +0100

Jeff,

>>>>>> Jeff LaMarche (JLM) wrote at Mon, 29 Oct 2001 21:56:09 -0800:
JLM> However, at the end of the method, you are releasing tabViewItem, rather
JLM> than autoreleasing it. Autorelease will only release your item if the
JLM> retain count has reached zero, but I believe that release will kill it
JLM> as soon as you call it, regardless of what other objects may have issued
JLM> a retain.
JLM>
JLM> Is this right?

Nope. Both autorelease and release work the very same way from this point of view.

Actually, autorelease is _nothing other_ than a request "be sent release at
the end of this event loop". (More precisely, when the current autorelease
pool is freed, but in newbie Cocoa applications that's the same.)

So, objects are, in fact, _ALWAYS_ released by 'release' -- autorelease only
schedules an "automatic" sending of it to a later time.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


  • Follow-Ups:
    • Re: TabView / TabViewItem / Inserting Views Problem
      • From: Sam Goldman <email@hidden>
References: 
 >Re: TabView / TabViewItem / Inserting Views Problem (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: how to change ower and setuid bit of a bundle application
  • Next by Date: Re: HTTP post
  • Previous by thread: Re: TabView / TabViewItem / Inserting Views Problem
  • Next by thread: Re: TabView / TabViewItem / Inserting Views Problem
  • Index(es):
    • Date
    • Thread