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

Retain cycle in NIB ?


  • Subject: Retain cycle in NIB ?
  • From: Eric Morand <email@hidden>
  • Date: Wed, 14 Sep 2005 23:46:49 +0200

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
  • Follow-Ups:
    • Re: Retain cycle in NIB ?
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Simple question
  • Next by Date: Re: Compute value in IB using bindings
  • Previous by thread: Re: Simple question
  • Next by thread: Re: Retain cycle in NIB ?
  • Index(es):
    • Date
    • Thread