Help with Bindings
Help with Bindings
- Subject: Help with Bindings
- From: email@hidden
- Date: Wed, 12 Mar 2008 08:44:03 -0700
(I hope this goes through this time, I have tried twice and this text
would not go through)
Iam hoping I can get some help here. I have not done any bindings yet
asmost of the programs I have written over the last couple of years
hadto support clear back to 10.2, so now I am done with that and I need
tomove forward. So now I am writing a new program. This program will be
aprefpane. So I thought this would be great to use Bindings on. But
Ihave had some problems wrapping my head around a problem that I
amhaving.
So I have a .prefpane. In the .prefpane UI I have a basically a
Master-Details layout.
Sofor the Master view I have a Tableview. Now I know how to handle
aTableview with bindings (using the NSArrayController) I have read up
onthat and done several of the examples and think I understand
thatpretty good. But one question, If I use the NSUserDefultsController
forthis .prefpane so my preferences can be handled for me, how do I
linkup the Tableview (Master view) to the bindings controller? Since it
isnot an NSArrayController I am not sure how to handle that properly.
Alsoin my details view where the data gets set based on what is selected
inmy Master view (Tableview), if I have another Tableview within
that,that shows data for the selected item in the Tableview, how do I
hookthat up to the currently selected Master item?
I hope this isclear to all of you. I am just really confused on how to
handle this,and any pointer would really be appreciated.
If there are anyexamples or documents that I can read on how to do this
that would begreat. I have read through the "Cocoa Bindings Programming
Topics)document from Apple and of course the documents on KVO and KVC.
Buthave not been able find this type of example and how to hook it all
up.
Thanks for any help in advance.
_______________________________________________
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