• 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 activation problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu activation problems


  • Subject: Re: Menu activation problems
  • From: Neil Earnshaw <email@hidden>
  • Date: Thu, 21 Aug 2003 14:07:01 +0100

If you don't set a target, then Cocoa will work its way up the responder chain looking for the first object that implements the menu item's selector. If it doesn't find one, then the menu item will be disabled.

If you mistype the selector name then the menu item will be disabled. Its very easy to type action:@selector(doSomething) instead of action:@selector(doSomething:) - note the ':'

-Neil

On Tuesday, August 19, 2003, at 11:42 AM, Jesus De Meyer wrote:

Hi,

I have a seperate controller that build a menu with submenus etc. In my
main controller I insert this menu to my main menu as a sub menu. It
works perfectly, but the items in the submenus are dimmed and I cannot
select them. I've tried using the setAutoenablesItems but that didn't
work.

Perhaps it's because this menu controller has no delegate, but then I
don't know why it should be a delegate. My main controller is the
delegate of File's Owner.

Any ideas?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


Neil Earnshaw
Consultant Software Engineer
Object Software Engineers Ltd
email@hidden
Tel : 01747 854 852
Mbl : 07870 209 102
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Menu activation problems (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: NSBrowser simple question
  • Next by Date: Automating PackageMaker?
  • Previous by thread: Re: Menu activation problems
  • Next by thread: How to print preview directly?
  • Index(es):
    • Date
    • Thread