• 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
Re: Dismissing Open dlog before doc actually opens
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dismissing Open dlog before doc actually opens


  • Subject: Re: Dismissing Open dlog before doc actually opens
  • From: Steve Mills <email@hidden>
  • Date: Tue, 13 Aug 2013 13:02:36 -0500

On Aug 12, 2013, at 21:22:07, Bryan Vines <email@hidden> wrote:

> Can you run an NSOpenPanel with a completion handler block, and in that block, call a method on a background thread to actually perform the file read operation?

Well, this won't work. The current code runs the dlog with runModal instead of beginWithCompletionHandler. If I change it to beginWithCompletionHandler, it returns right away and falls out of our semi-portable code for opening files before the dlog is even presented. We expect the Open dlog to be modal, not modeless. Any other ideas? I also tried calling orderOut after runModal returned, but it didn't make it go away.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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: Dismissing Open dlog before doc actually opens
      • From: Kyle Sluder <email@hidden>
    • Re: Dismissing Open dlog before doc actually opens
      • From: Bryan Vines <email@hidden>
References: 
 >Dismissing Open dlog before doc actually opens (From: "Mills, Steve" <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Bryan Vines <email@hidden>)

  • Prev by Date: Re: Get file from server with iPad App
  • Next by Date: Is it possible to define class from interface builder?
  • Previous by thread: Re: Dismissing Open dlog before doc actually opens
  • Next by thread: Re: Dismissing Open dlog before doc actually opens
  • Index(es):
    • Date
    • Thread