Change the Key equiv of the menu item when your textview takes on key focus, then set it back when finished.

On Aug 31, 2009, at 5:50 PM, Chilton Webb wrote:

Hi!

I have a menu item that defines Command+Shift+Arrow (left and right) to do something.

But I'd also like to support the 'normal' NSTextView behavior for Command+Shift+Arrow.

How do I tell my app to ignore this particular menu command (and use the default NSTextView behavior) when editing a text view, and then to go back to using the menu command when I'm done editing the text view?

Thanks!
-Chilton
_______________________________________________

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/intrntmn%40aol.com

This email sent to intrn...@aol.com

_______________________________________________

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