[Sparkle] no release notes - webkit callbacks in modal situations

Bob Stuller bob.stuller at macspeech.com
Fri May 2 08:38:55 PDT 2008


On May 2, 2008, at 11:09 AM, Pierre Bernard wrote:
> I am by no means an expert on the subject of run loops. But just in  
> case you get no other replies, here is mine.

You are too modest!  This solved my problem.  Thank you.

> You might try to drive the default run loop:
>
> 	while(1) {
> 		NSInteger response = [NSApp  
> runModalSession:currentModalWindowSession];
> 		
> 		if (response == NSRunAbortedResponse) {
> 			result = NSCancelButton;
> 		}
> 		
> 		if (response != NSRunContinuesResponse) {
> 			break;
> 		}
> 		
> 		[[NSRunLoop currentRunLoop] acceptInputForMode:NSDefaultRunLoopMode
> 											beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
> 	}

Peace,
Bob




The injury we do and the one we suffer are not weighed in the same  
scale.
	- Aesop



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andymatuschak.org/pipermail/sparkle-andymatuschak.org/attachments/20080502/25566ff9/attachment-0001.htm 


More information about the Sparkle mailing list