hiding text view

why does this not work?

call method “setHidden:” of (text view “terminal” of scroll view “terminal” of window “addressbook2pine”) with parameter “true”

what am I missing?

-patrick

A text view is a unique view subclass that does not respond to the NSView visibility property as you’d expect. You should modify the visibility of the enclosing scroll view instead, for example…

call method "setHidden:" of (scroll view "terminal" of window "addressbook2pine") with parameter "true"

By the way, do you have some reason that you’re not using the applescript command rather than the obj-c method? Applescript can handle this just fine…

set visible of scroll view "terminal" of window "addressbook2pine" to false

j

That is so weird because in interface builder its the text view that has the hidden attribte-- not scroll view!!!