• 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: Extra call to validateMenuItem before triggering action; new in Leopard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extra call to validateMenuItem before triggering action; new in Leopard?


  • Subject: Re: Extra call to validateMenuItem before triggering action; new in Leopard?
  • From: Peter Ammon <email@hidden>
  • Date: Mon, 10 Dec 2007 19:56:47 -0800


On Dec 9, 2007, at 8:06 AM, Doug Knowles wrote:



But if the 2nd call to validateMenuItem prior to the action is new and
intended behavior in Leopard, I'd like to know what the purpose is so I can
code appropriately.


Hi Doug,

The second validate is to allow programmatic calls to performActionForItemAtIndex: to work correctly with auto-validation. It should not be invoked in the case you are seeing, but apparently it is.

Have you considered using the clickedColumn method of NSTableView to avoid having to do your own mouse tracking?

-Peter

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Extra call to validateMenuItem before triggering action; new in Leopard?
      • From: "Doug Knowles" <email@hidden>
References: 
 >Extra call to validateMenuItem before triggering action; new in Leopard? (From: "Doug Knowles" <email@hidden>)

  • Prev by Date: Setting the size of NSTableView columns
  • Next by Date: "[NSPortCoder sendBeforeTime:sendReplyPort:] timed out ".
  • Previous by thread: Extra call to validateMenuItem before triggering action; new in Leopard?
  • Next by thread: Re: Extra call to validateMenuItem before triggering action; new in Leopard?
  • Index(es):
    • Date
    • Thread