• 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
validateMenuItem not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

validateMenuItem not called


  • Subject: validateMenuItem not called
  • From: Shrinivasa Kini <email@hidden>
  • Date: Tue, 24 Jan 2006 17:27:32 -0700

Hi,

I am building a Cocoa-document based app and have a menu-item ("Show Grid")
to show-hide grid in my doc window. The action method for the menu item,
toggleRuler, is defined in my custom view implementation.
I want to change the state of my menu item based on whether the grid is
displayed or not. So I have included the validateMenuItem: method in the
custom view implementation. The view is the firstReponsder in my window and
I have checked the IB connections. The problem is that the control never
goes into my validateMenuItem method. The action method is called when I
click on the menu item.
I have looked through all the postings for similar problems regarding
validateMenuItem on cocoa-dev but none seem to be the case for my app.
My code is somewhat similar to the Sketch app code which comes in the Appkit
examples.

Can someone help me with this one? If there is some way I could debug the
flow through the responder chain, I might know the problem with my code.

Thanks,
Shrini
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: collision nsbezierpath
  • Next by Date: Re: Small Webkit question
  • Previous by thread: Re: collision nsbezierpath
  • Next by thread: -[NSAttributedString initWithPasteboard:...] - which types are supported?
  • Index(es):
    • Date
    • Thread