• 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: Retain cycle in NIB ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retain cycle in NIB ?


  • Subject: Re: Retain cycle in NIB ?
  • From: Robert Cerny <email@hidden>
  • Date: Mon, 26 Sep 2005 20:32:13 +0200

Hi,
do you have "released when closed" checked in the nib?

HTH
R.

On 14.9.2005, at 23:46, Eric Morand wrote:

Hi List !



I have a nib file whose owner is an NSObject subclass. What is strange is that this subclass instances are nerver dealloc'd (dealloc is never called on them).

My nib file only contains the File's Owner (one instance of my NSObject subclass) and an NSObjectController instance whose content outlet is set to the File's Owner.

What is strange is that when U unplug the object controller content outlet, my subclass is dealloc'd successfully !

I suppose there is a retain cycle here (the File's Owner retain the object controller and the object controller retain the File"'s Owner) but I don't know what to do to fix it. I've found some threads about this in the archives but they all deal with NSWindowController (and my File's Owner is NOT an NSWindowController sublass) and solutions given don't work in my case.



Can anyone explain me what's happening here ?



Thanks,


Eric. _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Retain cycle in NIB ? (From: Eric Morand <email@hidden>)

  • Prev by Date: Re: updating a data file to a new version
  • Next by Date: Re: CD: subclassing NSArrayController
  • Previous by thread: Retain cycle in NIB ?
  • Next by thread: Getting a FSVolumeRefNum from NSString
  • Index(es):
    • Date
    • Thread