placeholderAttributedString on NSTextView should be public

Originator:keithbsmiley
Number:rdar://33583675 Date Originated:27-Jul-2017 21:15
Status:Closed (works as expected) Resolved:
Product:macOS + SDK Product Version:Xcode 9 beta 4
Classification:UI/Usability Reproducible:Always
 
Summary:
Currently there is no official way to add placeholder text to a NSTextView. But there is a private property called `placeholderAttributedString` that provides the expected behavior. It would be nice if this was public (and possible have a variant that was just a NSString, not a NSAttributedString)

Steps to Reproduce:
1. Create a new macOS app in Xcode
2. Add a NSTextView
3. Attempt to set placeholder text for the text view

Expected Results:
There is an easy way to do this like the `placeholderString` and `placeholderAttributedString` properties from `NSTextField`

Actual Results:
There is a private API for this, but nothing public.

Version:
Xcode 9 beta 4

Notes:

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!