NSTextField and hidden property

Posted by jasonbogd on Stack Overflow See other posts from Stack Overflow or by jasonbogd
Published on 2010-03-15T01:29:20Z Indexed on 2010/03/15 1:39 UTC
Read the original article Hit count: 297

Filed under:
|
|

Hi,

I have an NSTextField that I hide when the user presses a button. I hide the text field using [textField setHidden:YES]; The problem is that is the user is typing in the text field (i.e. the text field is first responder) and the user presses the return key (which is the key equivalent for the button that hides the text field) the user can keep typing in the text field even though its not visible. How do I correctly remove a text field without actually deallocating it?

Thanks.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about objective-c