• 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: NSPopupButtons and NSArrayControllers question and behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopupButtons and NSArrayControllers question and behavior


  • Subject: Re: NSPopupButtons and NSArrayControllers question and behavior
  • From: Steven Kramer <email@hidden>
  • Date: Wed, 23 Mar 2005 09:20:17 +0100


Op 22-mrt-05 om 20:31 heeft george tempel het volgende geschreven:


(Question) Once you select a state in (#7) and then a station in (#8), if you go back and select a different state (#7) the stationsPopup (#8) has the correct stations PLUS an additional bit of already selected garbage, which _was_ the previously selected station. At first I thought this may be because the previous state had more stations than the just-selected state, but that's not the case. And once you click on the stationsPopup (#8) and select something "real" the garbage goes away. What am I doing wrong, if anything? Should I be binding to something else in (#8) above, such as selectedValue?




I seem to remember that binding 'selectedObject' or 'selectedItem' (I forget so quickly ;-) will add that item to the popup, even if you have bound contentObjects. Unfortunately, this is not a solution, just a confirmation... I think you need to run some kind of action method to get the popup properly set up.



Regards,

Steven Kramer

--
email@hidden
http://sprintteam.com/

_______________________________________________
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: 
 >NSPopupButtons and NSArrayControllers question and behavior (From: george tempel <email@hidden>)

  • Prev by Date: Re: Dock Application Click
  • Next by Date: Re: NSTableView and Bindings
  • Previous by thread: NSPopupButtons and NSArrayControllers question and behavior
  • Next by thread: loop efficiency & messages
  • Index(es):
    • Date
    • Thread