NSMenuItem shouldn't automatically update
Originator: | saurabh.sharan | ||
Number: | rdar://7903888 | Date Originated: | 24-Apr-2010 |
Status: | Open | Resolved: | |
Product: | Mac OS X | Product Version: | 10.6.2 |
Classification: | Other Bug | Reproducible: | Always |
Summary: If an NSMenuItem's "value" binding is bound to a BOOL, the menu will automatically toggle the variable whenever the user clicks on the menu. Steps to Reproduce: Example project: http://dl.dropbox.com/u/1072340/MenuTest.zip 1) Run attached sample project. 2) Click on the menu item. 3) See "enabled" (which is bound to the menu item's value) change. Expected Results: "enabled" should not change automatically. Actual Results: "enabled" does change automatically. Regression: N/A Notes: N/A
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Just a little thought, but this looks completely normal behavior : if you don't want your 'enabled' ivar to be updated when the menu is clicked, don't bind it to the menu item…