• 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: Steve Moore <email@hidden>
  • Date: Thu, 4 Nov 2004 21:16:43 -0700


On Nov 4, 2004, at 6:46 PM, Scott Stevenson wrote:


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.

AND

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.


Bingo. Yep, Allan Odgaard outlined the retain cycle problem with the NSDocument as well as the NSWindowController. Tomorrow AM I'll insert the NSObjectController into my MyDocument and follow that workaround. What do they say about every problem can be solved by inserting another level of indirection? :)

Many thanks, Scott.

Later,
  Steve.

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

  • Prev by Date: Re: Why not a procedure for retain/release?
  • Next by Date: Re: how to get the iTunes look (a related question)
  • Previous by thread: Re: NSArrayController and retainCount
  • Next by thread: New Spotlight Info
  • Index(es):
    • Date
    • Thread