Dave Perrett

Cocoa NSTextView setHidden

cocoa, objective c, os x, programming, quickie

If you’re trying to hide an NSTextView without success, be aware that setHidden only hides the NSTextView itself - it doesn’t hide the enclosing NSScrollView. Instead of doing this :

1
[myTextView setHidden:YES];

you need to do :

1
[[myTextView enclosingScrollView] setHidden:YES];