• 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: Menu items unexpectedly disabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu items unexpectedly disabled


  • Subject: Re: Menu items unexpectedly disabled
  • From: Rob Keniger <email@hidden>
  • Date: Sat, 19 Dec 2009 09:06:10 +1000

On 19/12/2009, at 6:50 AM, Todd Heberlein wrote:

> I have a document-based app. For each document there can be a couple of satellite windows brought up for specific views of some of the data. Each of these satellite windows is controlled by an NSWindowController subclass loaded by MyDocument and added via addWindowController:.  A menu item's target is the First Responder, and the method to implement the action is in MyDocument. Everything works as expected when the primary window is key.
>
> The problem is that when one of the satellite windows is key, menu items implemented by MyDocument are disabled. I thought the responder chain went through the NSWindowController and then through to its NSDocument? Or is this only the case when for the document's primary window (and NSWindowController)?


That's correct, and that's how it should work. It works here in a test app. Are you doing anything "unusual" in your NSWindowController? What methods are you overriding?

--
Rob Keniger



_______________________________________________

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: Menu items unexpectedly disabled
      • From: Todd Heberlein <email@hidden>
References: 
 >Menu items unexpectedly disabled (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: Command+Option+Return not sent to doCommandBySelector:
  • Next by Date: Re: App works when launched from Xcode, not from Finder
  • Previous by thread: Menu items unexpectedly disabled
  • Next by thread: Re: Menu items unexpectedly disabled
  • Index(es):
    • Date
    • Thread