Re: Modal Session not stopping main thread.
Re: Modal Session not stopping main thread.
- Subject: Re: Modal Session not stopping main thread.
- From: Keary Suska <email@hidden>
- Date: Thu, 25 Dec 2008 10:03:57 -0700
On Dec 24, 2008, at 11:40 PM, Sandro Noel wrote:
Followup.
I have also tried...
- (void) showHostPasswordWindow:(MountDefinition *) mount{
NSInteger response = [NSApp runModalForWindow:hostPasswordWindow];
[hostPasswordWindow orderOut:self];
}
But that just seems to lock up my application even when i call
[NSApp stopModal]; in my ok button.
Have you tried using -abortModal instead? There are certain
circumstances that I have found -stopModal doesn't work properly, even
in the method evoked by a button click. Especially if you run the run
loop.
For truly synchronous behavior you will probably have to use -
runModalForWindow:.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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