Re: Extra call to validateMenuItem before triggering action; new in Leopard?
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