• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Back-to-back NSOpenPanel runModal blocking each other
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Back-to-back NSOpenPanel runModal blocking each other


  • Subject: Back-to-back NSOpenPanel runModal blocking each other
  • From: Sean McBride <email@hidden>
  • Date: Tue, 30 Jun 2015 15:55:34 -0400
  • Organization: Rogue Research Inc.

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?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Back-to-back NSOpenPanel runModal blocking each other
      • From: Charles Srstka <email@hidden>
    • Re: Back-to-back NSOpenPanel runModal blocking each other
      • From: Quincey Morris <email@hidden>
  • Prev by Date: UITextFieldDelegate
  • Next by Date: Re: Back-to-back NSOpenPanel runModal blocking each other
  • Previous by thread: UITextFieldDelegate
  • Next by thread: Re: Back-to-back NSOpenPanel runModal blocking each other
  • Index(es):
    • Date
    • Thread