Bind enabled of NSButton to selection in NSTextView

Posted by regulus6633 on Stack Overflow See other posts from Stack Overflow or by regulus6633
Published on 2010-04-16T16:36:02Z Indexed on 2010/04/16 19:03 UTC
Read the original article Hit count: 411

I have a button that does something to the selected text in NSTextView. If nothing is selected then nothing happens when the button is pressed... so can the enabled property of a button be bound to whether or not some text is selected?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa