Implemented NSTextViewDelegate to check if user changed selection

If the user change their selection, check if the output where they
changed it to by programmatically generated by looking into the
restricted ranges area. If it is in that array, play the system beep
and notify the user.