• 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 Sample code / Suggested reading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings Sample code / Suggested reading


  • Subject: Bindings Sample code / Suggested reading
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 3 Aug 2005 12:00:16 -0500

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


  • Follow-Ups:
    • Re: Bindings Sample code / Suggested reading
      • From: Brian Smith <email@hidden>
  • Prev by Date: Re: XCode -- my forgetfulness -- how to set Copyright and other About panel stuff
  • Next by Date: Re: Exception handling help
  • Previous by thread: Bindings Sample code / Suggested reading
  • Next by thread: Re: Bindings Sample code / Suggested reading
  • Index(es):
    • Date
    • Thread