• 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: NSArrayController and retainCount
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController and retainCount


  • Subject: Re: NSArrayController and retainCount
  • From: Scott Stevenson <email@hidden>
  • Date: Thu, 4 Nov 2004 17:46:44 -0800


On Nov 4, 2004, at 2:44 PM, Steve Moore wrote:

Thanks for the link, though unfortunately I do not have a subclass of NSWindowController. Nevertheless, I'll see if the workaround is applicable.

I can't recall right now, but I think an NSDocument subclass might have the same issue.



I'm hoping, if your workaround is not workable in this situation, that I am not going to have to go through all these objects and do a removeObserver... on them. That would be a drag.

I'm not sure that would do it. I believe it's binding (not KVO) that is responsible for the retains. So you'd have to unbind. Make sure to take a look at the discussion linked from that page I sent you. It has more details.



A rather simple question: if I release the window that contains all these objects with binding connections to my controller will all those "removeObserver..." calls be made by the various controls as they get deallocated

The problem is that the parent and children are retaining each other, so neither is deallocated without intervention.



- Scott


-- http://treehouseideas.com/ http://theobroma.treehouseideas.com/ [blog]

_______________________________________________
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: NSArrayController and retainCount
      • From: Steve Moore <email@hidden>
References: 
 >NSArrayController and retainCount (From: Steve Moore <email@hidden>)
 >Re: NSArrayController and retainCount (From: Scott Stevenson <email@hidden>)
 >Re: NSArrayController and retainCount (From: Steve Moore <email@hidden>)

  • Prev by Date: Webkit HTTPS
  • Next by Date: Re: Internationalization: How to bring the locale in line
  • Previous by thread: Re: NSArrayController and retainCount
  • Next by thread: Re: NSArrayController and retainCount
  • Index(es):
    • Date
    • Thread