• 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: Wed, 14 Aug 2013 09:03:59 -0500

On Aug 13, 2013, at 18:56:20, Kyle Sluder <email@hidden> wrote:

> And for a long time you used to have to keep the mouse button held down
> while navigating a menu hierarchy. Times change.

Let's focus on the question, shall we?

> The fact that -orderOut: didn't dismiss the open panel points at a
> deeper issue with your code that's probably worth investigating.

There most certainly is not a deeper issue with my code. Run this and you'll see for yourself:

-(IBAction) openDocument:(id)sender
{
	NSOpenPanel*			p = [NSOpenPanel openPanel];

	if([p runModal] == NSFileHandlingPanelOKButton) {
		[p orderOut:self];
		// Simulate code that takes 5 seconds to open a document:
		sleep(5);
	}
}

--
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: Sean McBride <email@hidden>
    • Re: Dismissing Open dlog before doc actually opens
      • From: Lee Ann Rucker <email@hidden>
    • Re: Dismissing Open dlog before doc actually opens
      • From: Roland King <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>)
 >Re: Dismissing Open dlog before doc actually opens (From: Steve Mills <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Kyle Sluder <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Steve Mills <email@hidden>)
 >Re: Dismissing Open dlog before doc actually opens (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Strange behaviour of NSLayoutManager
  • Next by Date: Re: Dismissing Open dlog before doc actually opens
  • 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