validateMenuItem not called
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