Skip navigation.
 
mlRe: Modal window and 'hanging' menu [SOLVED]
FROM : John Stiles
DATE : Wed Apr 30 19:05:34 2008

Manfred Schwind wrote:
>> You probably shouldn't be putting up a modal dialog from within the
>> menu-tracking runloop mode. You can use
>> -performSelector:withObject:afterDelay:inModes: to defer the call
>> that opens the modal dialog; use a delay of 0.0 but a modes array
>> that includes only the default runloop mode.

>
> Thanks for all the answers.
> cancelTracking did not work; whyever. I called it recursively for
> every NSMenu in the mainMenu. The hanging menu does not close.
>

File a radar then... that should work. It's new in Leopard so it's
possible that it's not being used extensively yet (IOW it's not well
tested).
> The suggested performSelector:withObject:afterDelay:inModes: works
> perfectly; the opening of the dialog will be delayed until the menu
> closes. Thank you!

Honestly I think this was the best suggestion anyway (wish I had thought
of it myself ;)  )

Related mailsAuthorDate
mlModal window and 'hanging' menu Manfred Schwind Apr 29, 23:12
mlRe: Modal window and 'hanging' menu Graham Cox Apr 30, 00:56
mlRe: Modal window and 'hanging' menu John Stiles Apr 30, 01:17
mlRe: Modal window and 'hanging' menu Jens Alfke Apr 30, 02:30
mlRe: Modal window and 'hanging' menu [SOLVED] Manfred Schwind Apr 30, 18:48
mlRe: Modal window and 'hanging' menu [SOLVED] John Stiles Apr 30, 19:05