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

Pierre Bernard pierre.bernard at houdah.com
Fri May 2 08:09:15 PDT 2008


Hi!

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 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]];
	}

Best,
Pierre Bernard
Houdah Software s.à r.l.

On 2 May 2008, at 16:58, Bob Stuller wrote:

> Folks, Greetings!
>
> I'm really sorry that I am initiating my subscription with a  
> problem.  But I've poked at this problem from a bunch of different  
> angles.  What's worse, I'm going to ask folks to give me a pass for  
> wanting to use a modal anything.  Write me off-list if you want to  
> hear my lame excuses.
>
> The presenting problem is Sparkle's updateAlert, when presented as a  
> sheet in a modal window, has the releaseNotesSpinner running  
> forever.  Turns out that the release notes view is Webkit & it  
> stalls in the modal situation.  One of the first things that I tried  
> was to factor out the loadReleaseNotes code & spawn off a thread for  
> it.  Trouble is, loadRequest is asynchronous & the callback doesn't  
> get hit.
>
> I've tried adding NSDefaultRunLoopMode at various place in various  
> ways but no love.
>
> Any clues?
>
> Peace,
> Bob
>
>
>
>
>
>
> Ignorance more frequently begets confidence than does knowledge.
> 	- Charles Darwin
>
> _______________________________________________
> Sparkle mailing list
> Sparkle at lists.andymatuschak.org
> http://lists.andymatuschak.org/listinfo.cgi/sparkle-andymatuschak.org

- - -
Houdah Software s. à r. l.
http://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Powerful Spotlight frontend



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


More information about the Sparkle mailing list