NSTextField expansion tooltip fails to show after programmatically setting a short, then long string value
| Originator: | mreagan | ||
| Number: | rdar://22348894 | Date Originated: | 8/19/2015 |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | 10.10.5 |
| Classification: | UI / Usability | Reproducible: | Always |
Summary: After programmatically updating an NSTextField's stringValue twice, if the NSTextField has `allowsExpansionToolTips` = YES, the tooltip fails to show up for the second longer string (this only occurs if the first string set is small enough to not require an expansion tooltip) Sample project attached Steps to Reproduce: 1. Add an NSTextField with allowsExpansionToolTips enabled in a window, and make sure it has constraints / settings such that a very long string would be truncated 2. Programmatically set a small string value on the text field 3. Allow textfield to update / layout 4. Programmatically set a very long string on the text field Expected Results: After setting the second long string, which is drawn truncated, hovering over the control should show the expansion tooltip Actual Results: The tooltip does not show on hover Version: 10.10.5 Notes: Configuration: Attachments: 'tooltiptest.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!