• 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: enabling Edit menu items in a modal window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enabling Edit menu items in a modal window?


  • Subject: Re: enabling Edit menu items in a modal window?
  • From: "Paul Sanders" <email@hidden>
  • Date: Mon, 2 Mar 2009 07:38:17 -0000

> I added a text field to my modal window, and when it is the first
> responder the cut, copy, paste and select all menu items are enabled.
> Just for grins I added a second NSTableView to the window and
> rebuilt. When that table has focus, the edit menu items are all
> disabled, just like for the original table.

> I admit the possibility that I'm doing something weird, but it must
> be a NSTableView-only kind of weird...

You could write a little class that derives from NSTableView and override
validateMenuItem.  Putting a debugger breakpoint on that might tell you
more.  The ins-and-outs of it are covered here:

http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Protocols/NSMenuValidation_Protocol/Reference/Reference.html

Rgds - Paul Sanders.

_______________________________________________

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

  • Follow-Ups:
    • Re: enabling Edit menu items in a modal window?
      • From: Steve Christensen <email@hidden>
References: 
 >Re: enabling Edit menu items in a modal window? (From: "Paul Sanders" <email@hidden>)
 >Re: enabling Edit menu items in a modal window? (From: Steve Christensen <email@hidden>)

  • Prev by Date: Advice on building a complex user custom control
  • Next by Date: Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
  • Previous by thread: Re: enabling Edit menu items in a modal window?
  • Next by thread: Re: enabling Edit menu items in a modal window?
  • Index(es):
    • Date
    • Thread