• 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
Cocoa menu items updating inefficiency?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Cocoa menu items updating inefficiency?
      • From: email@hidden
  • Prev by Date: Re: Invisible Window
  • Next by Date: Line width in an NSBezierPath
  • Previous by thread: Re: Invisible Window
  • Next by thread: Re: Cocoa menu items updating inefficiency?
  • Index(es):
    • Date
    • Thread