-[NSButton setAlternateImage:] does not redraw properly in a layer-backed view hierarchy
| Originator: | lithium3141 | ||
| Number: | rdar://15368082 | Date Originated: | 31-Oct-2013 05:52 PM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | Xcode 5.0.1 (5A2034a) / OS X 10.9 (13A603) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Changing the alternateImage on an NSButton does not cause the button to redraw properly if one of its superviews is layer-backed. Steps to Reproduce: 1. Add a button to a layer-backed view hierarchy. 2. Ensure it is displaying its alternate image (i.e. is in NSOnState). 3. Call -setAlternateImage: on the button with a different image. Expected Results: The button should change its alternate image and redraw. Actual Results: The button does not change appearance. Version: Xcode 5.0.1 (5A2034a) / OS X 10.9 (13A603) Notes: Sample project attached. To demonstrate the issue, run, then press the second button (labeled "Change That Button's Alternate Image!"). Calling -setNeedsDisplay: on the button with a YES argument does not fix this problem. Configuration: Attachments: 'ButtonStateRedraw.zip' was successfully uploaded.
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!