Re: what happpens after closing NSOpenPanel?
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.