On 5/10/12 4:24 PM, koko wrote: > I have a menu item connected to an action in First Responder; > > The action exists in an NSView subclass. > > The subclass implements acceptsFirstResonder and return YES. > > The subclass implements validateMenuItem and return YES; > > When the menu displays the menu item is disabled (set to enabled in IB). > > Is this not the proper implementation?
Let's cut to something more basic: is your view ACTUALLY in the responder chain? Since you apparently are expecting it to become firstResponder, do you actually make sure that it does (for example, by sending its window -makeFirstResponder: or marking it as the window's initialFirstResponder)? Remember that overriding acceptsFirstResponder does not magically put a view in the responder chain. (In addition to -makeFirstResponder: the view could also of course acquire first responder status in the usual manner, by user interaction.) -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com