• 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
bindings duplicates object returned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bindings duplicates object returned


  • Subject: bindings duplicates object returned
  • From: Eric Slosser <email@hidden>
  • Date: Wed, 07 Dec 2011 23:05:34 -0500

I have an NSTreeController whose 'content array' is bound to another object's 'content' key.

It appears that the binding mechanism duplicates the array that was returned by [foo content].

This is bad, because changes that 'foo' makes later to its m_content never show up in the window.  It's also bad because [NSTreeController selectedObject] doesn't correspond to anything in the tree under [foo content].

I can work around this by NOT using bindings to establish the controller's content, instead using [NSTreeController setContent:].

1. Where in the docs is this binding duplication described?
2. Is there a way to use bindings and avoid having [foo content] duplicated?
_______________________________________________

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: bindings duplicates object returned
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: ARC and dealloc
  • Next by Date: Re: bindings duplicates object returned
  • Previous by thread: Re: iOS: How to hide blue personal hotspot status bar?
  • Next by thread: Re: bindings duplicates object returned
  • Index(es):
    • Date
    • Thread