Re: Where can I put this code so that it's called when a menu is clicked
Re: Where can I put this code so that it's called when a menu is clicked
- Subject: Re: Where can I put this code so that it's called when a menu is clicked
- From: Matt Gemmell <email@hidden>
- Date: Sun, 22 Jun 2003 02:31:49 +0100
On 21/6/03 at 2:17 am, Cory Knapp said:
>
Where can I put this code so that it's called when a menu is clicked,
>
but before it is displayed. Currently I'm using a timer to update the
>
menu, but this is far from ideal. I would like to be able to load the
>
menu as the user clicks it. Is there anywhere I can but the code to
>
make this happen?
You could put the code within a -validateMenuItem: method in whatever
will be the firstResponder at the time the menu is clicked.
Cheers,
-Matt
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
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.