• 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 validation not working [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu validation not working [SOLVED]


  • Subject: Re: Menu validation not working [SOLVED]
  • From: Jeremy Dronfield <email@hidden>
  • Date: Thu, 22 Aug 2002 17:19:58 +0100

On Thursday, August 22, 2002, at 03:50 pm, Mark de Jong wrote:

Jeremy,

This has happened to me in the past. The only way I was able to fix it was to rebuild the menus and their menuitems in IB. What a pain that was! But, it did fix the problem.

-- Mark

On Thursday, August 22, 2002, at 07:28 AM, Jeremy Dronfield wrote:

Does anyone know of any undocumented weird behaviour with NSMenuValidation? I've used -validateMenuItem: plenty of times before, and can't find anything wrong with my code, but validation just isn't happening. Yes, I do have autoenabling switched on, which shouldn't be necessary anyway since it's on by default. My menu items are all hooked up to targets and working fine. Having a popup menu in the main window can't have made any difference, can it?

I cured the problem. I think there's a bug in IB. I went through all my menus and checked "Auto Enables Items" for each one, then saved and compiled. Lo and behold, validation worked. When I went back to IB (without having closed the nib file in the meantime), all the Auto Enables checkboxes had unchecked themselves. I left them as they were, saved and compiled again, and validation continued to work.
-Jeremy

=======================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
_______________________________________________
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: 
 >Re: Menu validation not working (From: Mark de Jong <email@hidden>)

  • Prev by Date: Re: Equivalent to the fscanf() C function in Cocoa?
  • Next by Date: Re: Bundle loading
  • Previous by thread: Re: Menu validation not working
  • Next by thread: Deallocating Distributed Objects
  • Index(es):
    • Date
    • Thread