• 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: what happpens after closing NSOpenPanel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what happpens after closing NSOpenPanel?


  • Subject: Re: what happpens after closing NSOpenPanel?
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 23 Dec 2003 00:00:16 +0100

On lundi, dicembre 22, 2003, at 09:20 PM, Sven Hoffmann wrote:

Hi,

I have trouble understanding why it takes so long for my NSOpenPanel to
disappear after clicking OK.

Well, i know it is because the openPanelDidEnd:returnCode:contextInfo
delegate method i specified for the Panel has a lot of work to do once
the user clicks OK.

But is there no way to first make the Panel close and then have the
work done?

I couldnt figure out how, maybe someone can help me.

Probably, if your software allows the method to be executed a bit later after the panel is closed.

If this is the case, you can add a method with is taking the filename or filenames as its object and call in openPanelDidEnd:returnCode:contextInfo

[myInstance performSelector:@selector(mySelector:) withObject:[myOpenPanel filename(s)] afterDelay:0.1 /* Or more */];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >what happpens after closing NSOpenPanel? (From: Sven Hoffmann <email@hidden>)

  • Prev by Date: Re: [OT] True multiuser?
  • Next by Date: Re: Database Application with Obj-C
  • Previous by thread: what happpens after closing NSOpenPanel?
  • Next by thread: Making a delegate NSResponder
  • Index(es):
    • Date
    • Thread