All NSViews should have an enabled property
| Originator: | kusterer | ||
| Number: | rdar://19601595 | Date Originated: | 26-Jan-2015 08:21 PM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | Mac OS X 10.10.1 (14B25) |
| Classification: | Enhancement | Reproducible: | Not Applicable |
Maybe that was PowerPlant or TCL or MacZoop or whatever I was using back then, but in Ye Olde Carbon Days™, any view (even completely transparent plain HIViews and other containers, not just actual controls) had an "enabled" property that allowed to disable not only it, but also all its subviews. This was very useful for single-window UI, because you could just disable a whole area of the window that wasn't applicable instead of having to manually pick each item in it, e.g. to deactivate certain UI while a progress bar is up. Another nice feature of this was that each view actually had three enabled states: enabled, latently enabled, and disabled. If a view is disabled directly, its state becomes disabled. If a view is just disabled because its superview is disabled, it becomes latently enabled (which displays the same as disabled). That way, re-enabling a view restores the enable state of its subviews. Would be great if NSView could get this feature, too. Thanks.
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!