• 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
bindings only work one way?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bindings only work one way?


  • Subject: bindings only work one way?
  • From: Kenny Leung <email@hidden>
  • Date: Sat, 15 Oct 2005 17:23:38 -0700

Hi All.

I think I'm doing everything right with bindings, but perhaps I'm misunderstanding something. I have a custom control which controls transparency. Since this is a custom control, I'm hooking up the binding programmatically. I hook the control up to my WindowController using:

[transparencyControl bind:@"alpha" toObject:self withKeyPath:@"superimpositionView.alpha" options:nil];

It all works perfectly - almost. The binding appears to be read-only - that is, when I change the alpha value in superimpositionView, it changes the value on the control, but when I manipulate the control, it will not change the value in superimpositionView. Am I missing something basic about bindings?

Any help is much appreciated.
Thanks!

-Kenny

_______________________________________________
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: bindings only work one way?
      • From: Kenny Leung <email@hidden>
  • Prev by Date: Re: Webview and databases
  • Next by Date: Re: Warning: "initialization from distinct Objective-C type". What does it mean?
  • Previous by thread: Re: Warning: "initialization from distinct Objective-C type". What does it mean?
  • Next by thread: Re: bindings only work one way?
  • Index(es):
    • Date
    • Thread