On Jun 30, 2015, at 2:55 PM, Sean McBride <[email protected]> wrote:
>
> Hi all,
>
> Should I be able to display one NSOpenPanel after another using runModal?
>
> Basically, I have a loop where I prompt users to manually find files when
> alias/bookmark resolution fails. I use the synchronous API runModal which
> displays a modal NSOpenPanel and returns only when the user has pressed
> OK/Cancel. However, the panel itself doesn't always actually get visually
> removed from the screen before my loop spins around again and displays
> another open panel. When that occurs, the new one gets shown *under* the old
> one, but the old one can't be interacted with and the new one is thus
> blocked. If I throw in a sleep(1) before showing a second one, things work
> as desired.
>
> Should what I'm trying to do work?
How about [NSAnimationContext currentContext].completionHandler = ^{ // do
something }; ?
Disclaimer: haven’t tested it myself, so I don’t know if it will do what you
want, but it’s worth trying.
Charles
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]