setBackgroundColor: on sheet NSWindows no longer works
| Originator: | kusterer | ||
| Number: | rdar://17840963 | Date Originated: | 29-Jul-2014 02:56 PM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | 10.10 b4 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: To theme our UI, we call setBackgroundColor: on an NSWindow presented as a sheet, to change the color of the entire sheet's background. Steps to Reproduce: - Create a window using an NSWindowController subclass. - Override windowDidLoad to call [self.window setBackgroundColor: [NSColor colorWithCalibratedWhite: 0.15 alpha: 0.95]]; and then call through to super - Present the window as a sheet using NSApplication's beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: Expected Results: You should get a dark grey sheet, partially transparent. Actual Results: The sheet has a bright white background color. Regression: This worked fine on 10.7-10.9.x
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!