Bindings Sample code / Suggested reading
Bindings Sample code / Suggested reading
- Subject: Bindings Sample code / Suggested reading
- From: Glen Simmons <email@hidden>
- Date: Tue, 2 Aug 2005 17:13:41 -0500
First, I'd like to ask for suggestions for sample code and further
reading on bindings. I'm struggling to get up the learning curve and
would appreciate any suggestions. I've read the Cocoa Bindings
Programming Topic and played with the Currency Converter example, but
they fell a bit short for me.
Second, some specific questions:
My goal is to use bindings for an inspector panel in my app. I'm part-
way there - I have an NSTreeController in my Inspector.nib that has
its contentObject bound to Shared
Application.mainWindow.windowController.document.rootObject. I threw
in an NSOutlineView and bound it to the NSTreeController, so I know
it's traversing the model correctly. Now I'm trying to bind UI
elements to the document's selection. It appears from the stuff I've
found that I need to bind the NSTreeController's selectionIndexPaths
to something, but I'm not sure what to do there. Also, when the
selection in my document changes, how does the NSTreeController learn
about it?
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