• 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
Menu items validation woes...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Menu items validation woes...


  • Subject: Menu items validation woes...
  • From: Jérome Foucher <email@hidden>
  • Date: Tue, 2 Sep 2003 10:38:12 +0200

Hi all,

I have some problems understanding how menu items are auto-enabled.

Here's what I'm trying to achieve :
- I've got a NSTableView which has a menu connected to it in IB
- this menu has some items that need to be enabled only if the selection in the table is 1 and only 1 item
- the NSTableView is holded inside a NSWindow that can have multiple instances (the content of the table is different in each window).

I'm aware of the -(BOOL)validateMenuItem:(NSMenuItem*)anItem method, but I don't really see where I have to add this method.

Does anybody have some hints ?
Thanks
Jerome
_______________________________________________
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.

  • Follow-Ups:
    • Re: Menu items validation woes...
      • From: Dustin Voss <email@hidden>
  • Prev by Date: Loading of NSWindows during awakeFromNib
  • Next by Date: First Responder (was "Re: Enable the Copy Menu")
  • Previous by thread: Re: Loading of NSWindows during awakeFromNib
  • Next by thread: Re: Menu items validation woes...
  • Index(es):
    • Date
    • Thread