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 10.5.x.

Problem:
--------

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.

Question:
---------

Is there a way to revert to the previous/right behavior?

I looked in the documentation which is full of set/is methods but not
the one I'm looking for as far as I can tell.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to