• 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
NSTreeController's selectionIndexPaths binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController's selectionIndexPaths binding


  • Subject: NSTreeController's selectionIndexPaths binding
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 3 Aug 2005 12:01:05 -0500

(Sorry, sent the last one with the wrong subject)

I'm having an issue with NSTreeController's selectionIndexPaths binding. I'm trying to bind controls in an inspector panel to the current document's selection. I've bound the NSTreeController's contentObject to Shared Application.mainWindow.windowController.document.rootObject and the selectionIndexPaths to Shared Application.mainWindow.windowController.document.selectionIndexPaths. My document class has the correct accessors and when the selection changes, I call setSelectionIndexPaths in my document and the bindings update and everything is great. That is, until the document loses focus or I switch documents. Then my document's setSelectionIndexPaths method gets called by the binding system with an empty array, so the selection is wrong. Why is it doing that and how do I make it stop?

Thanks,
Glen


_______________________________________________ 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
  • Prev by Date: Re: RESEND: NSMetadataItem performance issues
  • Next by Date: Issue resizing a bordered tab view
  • Previous by thread: Re: XCode -- my forgetfulness -- how to set Copyright and other About panel stuff
  • Next by thread: Issue resizing a bordered tab view
  • Index(es):
    • Date
    • Thread