NSTextView does not have rounded corners in spite of using setConerRadius
I h开发者_运维知识库ave NSTextView and need rounded corners for the same. Hence i tried using setCornerRadius and set the value to 10, but i don't see the rounded corners in my UI. Any ideas?
Try setting it on the NSTextView's layer, not the NSTextView itself.
[[myTextView layer] setCornerRadius:10.0f];
精彩评论