Xref: utzoo comp.object:2889 comp.lang.objective-c:214 comp.sys.next:14737 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!JRSCS@uno.edu From: jrscs@uno.edu Newsgroups: comp.object,comp.lang.objective-c,comp.sys.next Subject: Capturing mouse actions Message-ID: <009462DD.D34CD760@uno.edu> Date: 26 Mar 91 15:29:02 GMT Sender: news@rex.cs.tulane.edu Reply-To: jrscs@uno.edu Lines: 13 Does anyone know how I can capture the mouse's selecting a text area by highlighting. When the user selects some text, I would like to make available an option to call up Webster to define the word. Calling up Webster is no problem; it's knowing when the Webster option should be enabled by seeing if the user has highlighted a word with the mouse. I think mouseUp, mouseDown, ... might do the trick but not sure how to use them. Also, if mouseUp, ... do need to be re-implemented, where should that be done - as a subclass of Text. If this is so, can the Text object inside the ScrollView from the Interface Builder palette have its class changed to this new subclass via Interface Builder? Thanks.