• 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
Re: bindings bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindings bug?


  • Subject: Re: bindings bug?
  • From: Mike Abdullah <email@hidden>
  • Date: Fri, 7 Jul 2006 16:57:18 +0100

It's not really a bug as such, it's more what you're doing wrong I'm afraid!

The whole point of bindings is that you don't have to talk to the interface elements directly a lot of the time. Instead, you should set the value which the popup is bound to and the popup will update itself.

Mike.

On 7 Jul 2006, at 5:21AM, Alan Donsky wrote:

I have an interesting problem i cant figure out.

I have a pop-up button whose selectedValue is bound to a textField.
It works fine if I manually change the pop-up by clicking on it.

However, if I send [popUpButton selectItemWithTitle:@"blah"], the pop-up button changes its selection to "blah" but the change is not reflected in the bound text field. If I simply click on the popup button (without changing the selcetion), then the textfield displays "blah" Is this a bug or do I need to set the selection of the popup button differently?

Alan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ 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
References: 
 >bindings bug? (From: Alan Donsky <email@hidden>)

  • Prev by Date: Re: where have all the IVARS gone? (long time passing...)
  • Next by Date: Re: How to identify the host app is Carbon or Cocoa in a context menu plugin.
  • Previous by thread: bindings bug?
  • Next by thread: more drag source problem
  • Index(es):
    • Date
    • Thread