Re: Menu items unexpectedly disabled
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