• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Overriding NSMenu from an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding NSMenu from an NSTextView


  • Subject: Re: Overriding NSMenu from an NSTextView
  • From: Jack Carbaugh <email@hidden>
  • Date: Mon, 31 Aug 2009 18:01:59 -0400

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 (email@hidden)

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:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Overriding NSMenu from an NSTextView (From: Chilton Webb <email@hidden>)

  • Prev by Date: IKSlideshow reloadData should reload, yes?
  • Next by Date: Re: "Format not a string literal and no format arguments"
  • Previous by thread: Overriding NSMenu from an NSTextView
  • Next by thread: IKSlideshow reloadData should reload, yes?
  • Index(es):
    • Date
    • Thread