More binding questions
More binding questions
- Subject: More binding questions
- From: Steve Weller <email@hidden>
- Date: Wed, 13 Jul 2005 22:03:12 -0700
Now I have my simple application working, I am interested to know if
I set up the bindings in IB correctly.
I added three things to Window: an NSTextField, an NSSlider, and an
NSButton. I instantiated a class called Clicker and a
ClickerController (NSObjectController renamed) to the nib.
The only connection I created was from ClickerController to Clicker:
content. I created three bindings:
NSTextField value binds to: ClickerController, selection, sliderValue
NSSlider value binds to: ClickerController, selection, sliderValue
NSButton action binds to: ClickerController, selection, clicked
So far so good?
I found that I could throw away ClickerController and bind everything
to Clicker instead. What does the ClickerController do for me that
Clicker does not?
--
How much art could an artichoke choke if an artichoke could choke art?
_______________________________________________
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