Re: wired things about NSApp Modal
Re: wired things about NSApp Modal
- Subject: Re: wired things about NSApp Modal
- From: Jerry Krinock <email@hidden>
- Date: Fri, 8 Feb 2008 20:00:42 -0800
On 2008 Feb, 08, at 18:50, cai qin wrote:
Is this wired? I can't figure out why it acts like this?
I'm not sure I understand you 100%, but it sounds like maybe the code
containing -abortModal is not running because the app is in a modal
state from which it does not recover until you switch to another app.
Use an NSLog() to confirm that.
Of course, what is really weird is that you are sending -
runModalForWindow: specifying a window that you do not want to show.
I would suggest not showing (running modal) the window in the first
place, then you would not have to worry about getting rid of it in the
second place.
_______________________________________________
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