• 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: Modal Session not stopping main thread.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Modal Session not stopping main thread. (From: Sandro Noel <email@hidden>)
 >Re: Modal Session not stopping main thread. (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: Cocoa Apple Script Problem
  • Next by Date: Memory Management question
  • Previous by thread: Re: Modal Session not stopping main thread.
  • Next by thread: NSPersistentDocument's managedObjectContext accessed from init
  • Index(es):
    • Date
    • Thread