[NSTextView] Is there a workaround for Snow Leopard new word selection behavior/bug?

2010-09-02 Thread Stephane Sudre
Case: - I need to detect double-click on a word when the alt key is hold down (to do something similar to what Xcode does). To do this I subclassed NSTextView and implemented a custom the mouseDown: method (that calls the super method, don't panic). This works fine on Mac OS X 10.4.x and

Re: [NSTextView] Is there a workaround for Snow Leopard new word selection behavior/bug?

2010-09-02 Thread vincent habchi
Le 2 sept. 2010 à 21:42, Stephane Sudre a écrit : This does not work as well in Mac OS X 10.6. Because when you double-click on the word myclass in a text like this: myclass.mymethod this selects myclass.mymethod. On previous OS versions, only myclass was selected. You can add a

Re: [NSTextView] Is there a workaround for Snow Leopard new word selection behavior/bug?

2010-09-02 Thread Stephane Sudre
It's a good solution if you need in which direction you need to shrink the selection. But I can't know that. On Thu, Sep 2, 2010 at 12:57 PM, vincent habchi vi...@macports.org wrote: Le 2 sept. 2010 à 21:42, Stephane Sudre a écrit : This does not work as well in Mac OS X 10.6. Because when

Re: [NSTextView] Is there a workaround for Snow Leopard new word selection behavior/bug?

2010-09-02 Thread Ken Thomases
On Sep 2, 2010, at 2:42 PM, Stephane Sudre wrote: I need to detect double-click on a word when the alt key is hold down (to do something similar to what Xcode does). This does not work as well in Mac OS X 10.6. Because when you double-click on the word myclass in a text like this: