FROM : Michael Ash
DATE : Thu Aug 31 13:20:33 2006
On 8/30/06, Timothy Larkin <<email_removed>> wrote:
> I have over-ridden menuForEvent to create a contextual menu.
>
> The first time I control-click to evoke the menu, there is a 7 second
> delay before the menu appears. On subsequent clicks there is no
> delay. As far as I can tell, this delay is not caused by my code, but
> occurs after my method returns the NSMenu.
>
> Can anyone suggest an explanation for this, or a solution?
Instead of guessing at the solution, use your tools and find out. Run
Shark or Sampler on your program, then you will *know* exactly what
it's doing for those seven seconds.
Mike
DATE : Thu Aug 31 13:20:33 2006
On 8/30/06, Timothy Larkin <<email_removed>> wrote:
> I have over-ridden menuForEvent to create a contextual menu.
>
> The first time I control-click to evoke the menu, there is a 7 second
> delay before the menu appears. On subsequent clicks there is no
> delay. As far as I can tell, this delay is not caused by my code, but
> occurs after my method returns the NSMenu.
>
> Can anyone suggest an explanation for this, or a solution?
Instead of guessing at the solution, use your tools and find out. Run
Shark or Sampler on your program, then you will *know* exactly what
it's doing for those seven seconds.
Mike
| Related mails | Author | Date |
|---|---|---|
| Timothy Larkin | Aug 31, 02:37 | |
| Murat Konar | Aug 31, 02:40 | |
| Michael Ash | Aug 31, 13:20 | |
| Aurélien Hugelé | Aug 31, 15:02 |






Cocoa mail archive

