I think we’d need to see the whole method. Are you storing the menu into a property? Are you sure the statement is not true, i.e. you walked through it with the debugger?
[quote=82455:@Norman Palardy]theres a bug report about this
don’t know the # off the top of my head[/quote]
Oh fab, spent 2 night sweating over this.
It works fine (i.e. menu does not show) until the condition is met and then it will show it regardless of whether or not the condition is met. See this very simple example which is looking for you contextual clicking “TestRow2”
when you get passed base you MIGHT try just removing all its rows, setting it nil, or assigning a new menu item
I forget what the notes on the case said but there was a workaround
Also Bug 28142 is similar that I am participating in as well. Once the menu triggers and pops it always stays in that state whether the “condition” is any longer true or not.