• 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
More binding questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: More binding questions
      • From: mmalcolm crawford <email@hidden>
References: 
 >State based on front most document (was RE: Documentation frustrations) (From: Erik Buck <email@hidden>)

  • Prev by Date: Multiple pasteboard items
  • Next by Date: Target-Actions and Outlets
  • Previous by thread: State based on front most document (was RE: Documentation frustrations)
  • Next by thread: Re: More binding questions
  • Index(es):
    • Date
    • Thread