FROM : Graham Cox
DATE : Wed Apr 30 00:56:17 2008
From the docs for runModalForWindow:
"Use this method in cases where you do not need to do any additional
background processing while the modal loop runs. This method consumes
only enough CPU time to process events and dispatch them to the action
methods associated with the modal window. If you want to perform
additional background processing, use runModalSession: together with
an NSModalSession object instead."
I guess closing the menu counts as background processing, so the
solution would seem to lie in not handling your UI this way.
hth,
G.
On 30 Apr 2008, at 7:12 am, Manfred Schwind wrote:
> I have a modal dialog window that "pops up" at some time. I am doing
> the modal session with [NSApp runModalForWindow:window].
>
> If the user has clicked into the menu bar just before this modal
> window opens, the menu is hanging down and can not be closed before
> the modal window is closed.
>
> Is there anything I can do about that?
>
> Mani
> --
> http://www.mani.de
> iVolume - Loudness adjustment for iTunes.
> LittleSecrets - The encrypted notepad.
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/graham.<email_removed>
>
> This email sent to graham.<email_removed>
DATE : Wed Apr 30 00:56:17 2008
From the docs for runModalForWindow:
"Use this method in cases where you do not need to do any additional
background processing while the modal loop runs. This method consumes
only enough CPU time to process events and dispatch them to the action
methods associated with the modal window. If you want to perform
additional background processing, use runModalSession: together with
an NSModalSession object instead."
I guess closing the menu counts as background processing, so the
solution would seem to lie in not handling your UI this way.
hth,
G.
On 30 Apr 2008, at 7:12 am, Manfred Schwind wrote:
> I have a modal dialog window that "pops up" at some time. I am doing
> the modal session with [NSApp runModalForWindow:window].
>
> If the user has clicked into the menu bar just before this modal
> window opens, the menu is hanging down and can not be closed before
> the modal window is closed.
>
> Is there anything I can do about that?
>
> Mani
> --
> http://www.mani.de
> iVolume - Loudness adjustment for iTunes.
> LittleSecrets - The encrypted notepad.
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/graham.<email_removed>
>
> This email sent to graham.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Manfred Schwind | Apr 29, 23:12 | |
| Graham Cox | Apr 30, 00:56 | |
| John Stiles | Apr 30, 01:17 | |
| Jens Alfke | Apr 30, 02:30 | |
| Manfred Schwind | Apr 30, 18:48 | |
| John Stiles | Apr 30, 19:05 |






Cocoa mail archive

