• 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 table column bindings retain/dealloc woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController and table column bindings retain/dealloc woes


  • Subject: Re: NSArrayController and table column bindings retain/dealloc woes
  • From: Keith Blount <email@hidden>
  • Date: Thu, 20 Nov 2008 13:11:10 -0800 (PST)

Thanks for the reply. I did consider that but from what I had read I only thought that was a fix for the retain cycles created when file's own is an NSWindowController. I already manuallet setContent: and setContent:nil on my NSArrayController, does that not have the same effect? I'll certainly try it, anyway.
Thanks again,
Keith


--- On Thu, 11/20/08, Shawn Erickson <email@hidden> wrote:

> From: Shawn Erickson <email@hidden>
> Subject: Re: NSArrayController and table column bindings retain/dealloc woes
> To: email@hidden
> Cc: email@hidden
> Date: Thursday, November 20, 2008, 8:46 PM
> On Thu, Nov 20, 2008 at 12:36 PM, Keith Blount
> <email@hidden> wrote:
> > Thanks for your reply, Ken. I did search the archives
> (and other places to) but didn't see the recent
> discussion you mentioned, so I must have missed it. The
> window controller method isn't a great solution for me,
> unfortunately - I tried it but it causes all sorts of
> responder issues given how deep my own view controllers are
> already embedded into my app. The main thing is knowing that
> this is all handle automatically by NSWindowController,
> NSViewController and NSDocument, though - knowing that gives
> me the way forward, as it tells me that I haven't got
> anything horrible going on but that I just need to unbind
> certain table columns manually. As I only use my custom view
> controller in a few places, it shouldn't be too onerous
> to hard code this for now.
>
> Consider creating an NSObjectController instance in you
> nib, bind your
> table columns to that, create an outlet from your files
> owner to that
> object controller, and then programmatically set and unset
> the content
> object for that object controller.
>
> This allows you to break the retain cycle with a single
> operation
> instead of dealing with multiple bindings, etc.
>
> -Shawn



_______________________________________________

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: NSArrayController and table column bindings retain/dealloc woes
      • From: "Shawn Erickson" <email@hidden>
References: 
 >Re: NSArrayController and table column bindings retain/dealloc woes (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: Is -rangeOfUserTextChange: supposed to wipe out marked text/diacritical marks?
  • Next by Date: NSImageView and releasing it's images...
  • Previous by thread: Re: NSArrayController and table column bindings retain/dealloc woes
  • Next by thread: Re: NSArrayController and table column bindings retain/dealloc woes
  • Index(es):
    • Date
    • Thread