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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to