Bindings Sample code / Suggested reading
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