• 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: Steve Christensen <email@hidden>
  • Date: Sun, 01 Mar 2009 16:35:35 -0800

On Mar 1, 2009, at 1:59 AM, Paul Sanders wrote:

At the time I check the Edit menu, the focus ring is around my custom
table view and a row is selected. NSTableView says that it implements
selectAll: and deselectAll:, and just to be extra sure, I created my
own that just call super, but that doesn't change any behavior.

Try it in a non-modal window. My guess is that you will get the same
behaviour (which would eliminate one unknown). FWIW I have a text edit
field in a modal window and all the menu items (which are connected to
firstResponder, as set up by IB) work as they should.

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

steve

_______________________________________________

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: "Paul Sanders" <email@hidden>
References: 
 >Re: enabling Edit menu items in a modal window? (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: Running Cocoa applications from file servers
  • Next by Date: Re: Rotate NSImage to get a new NSImage, without drawing
  • 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