Cocoa menu items updating inefficiency?
Cocoa menu items updating inefficiency?
- Subject: Cocoa menu items updating inefficiency?
- From: "Donald S. Hall" <email@hidden>
- Date: Mon, 13 May 2002 00:28:40 -0600
Hi all,
I'm working my way through Hillegass. In Chapter 23, Updating Menus, it
explains how to use the validateMenuItem: method to control the status of
menu items. The view in the example is the target of 4 menu items, 1 from
File and 3 from Edit. When I click on a menu, validateMenuItem: is invoked 4
times regardless of which menu title I click. It appears that dropping one
menu is causing all menu items targeting the view to send it the
validateMenuItem message, regardless of which menu they are in. Isn't this
rather inefficient? Why should a menu item from an inactive menu want to
update its status? Am I missing something, or is this a minor bug?
Regards,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden
_______________________________________________
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.