• 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
NIB's owner doesn't get released because of NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NIB's owner doesn't get released because of NSArrayController


  • Subject: NIB's owner doesn't get released because of NSArrayController
  • From: "Vitaly Ovchinnikov" <email@hidden>
  • Date: Thu, 15 Jan 2009 00:51:04 +0300

Hello all,

I have a custom-loaded NIB file with NSView and NSArrayController.
Array controller is bound to file's owner (NSObject's derived class)
and use some keypath for contentArray. The problem is when I close a
window and main window controller tries to release this file's owner -
array controller still holds a reference to it and doesn't allow to do
that.

So I have two questions:
1. What is the correct way to catch "closing" of the view to unbound
array controller?
2. Do I really need to catch something? Maybe there is a simpler solution?

Any ideas?
Thank you.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NIB's owner doesn't get released because of NSArrayController
      • From: "Jason Foreman" <email@hidden>
    • Re: NIB's owner doesn't get released because of NSArrayController
      • From: "Vitaly Ovchinnikov" <email@hidden>
  • Prev by Date: Re: Custom drawn menus?
  • Next by Date: Re: NIB's owner doesn't get released because of NSArrayController
  • Previous by thread: Re: Custom drawn menus?
  • Next by thread: Re: NIB's owner doesn't get released because of NSArrayController
  • Index(es):
    • Date
    • Thread