Re: runloops and NSURLConnection

2008-06-01 Thread Jean-Daniel Dupas
Le 1 juin 08 à 14:27, Torsten Curdt a écrit : If you handle the modal session yourself, it's easy to let the connection do some processing while the modal window is open: Replace -[NSApp runModalForWindow:[self window]] by this and it should do the trick. /* Create a modal session, and

Re: runloops and NSURLConnection

2008-06-01 Thread Torsten Curdt
On May 31, 2008, at 19:54, Jens Alfke wrote: On 31 May '08, at 10:14 AM, Torsten Curdt wrote: Indeed - modal is smelly ...and I have considered non-modal. It would make my life easier. But since I have just integrated your exception handling into the FeedbackReporter framework ...wouldn'

Re: runloops and NSURLConnection

2008-06-01 Thread Torsten Curdt
If you handle the modal session yourself, it's easy to let the connection do some processing while the modal window is open: Replace -[NSApp runModalForWindow:[self window]] by this and it should do the trick. /* Create a modal session, and in each loop, we process the default runloop

Re: runloops and NSURLConnection

2008-05-31 Thread Jean-Daniel Dupas
Le 31 mai 08 à 19:14, Torsten Curdt a écrit : On May 31, 2008, at 18:55, Jens Alfke wrote: On 31 May '08, at 8:07 AM, Torsten Curdt wrote: I think you want to schedule the connection for the NSModalPanelRunLoopMode runloop mode. This is the mode that is used for modal windows. You mean

Re: runloops and NSURLConnection

2008-05-31 Thread Jens Alfke
On 31 May '08, at 10:14 AM, Torsten Curdt wrote: Indeed - modal is smelly ...and I have considered non-modal. It would make my life easier. But since I have just integrated your exception handling into the FeedbackReporter framework ...wouldn't you expect the dialog that pops up in case o

Re: runloops and NSURLConnection

2008-05-31 Thread Torsten Curdt
On May 31, 2008, at 18:55, Jens Alfke wrote: On 31 May '08, at 8:07 AM, Torsten Curdt wrote: I think you want to schedule the connection for the NSModalPanelRunLoopMode runloop mode. This is the mode that is used for modal windows. You mean with scheduleInRunLoop:forMode: ? ...but that's

Re: runloops and NSURLConnection

2008-05-31 Thread Michael Vannorsdel
I saw you using that in your included code so I thought you were ok with it. For Tiger I can only suggest using secondary thread processing as the cleanest approach. Or you can reconsider using a modal window. On May 31, 2008, at 9:07 AM, Torsten Curdt wrote: You mean with scheduleInRun

Re: runloops and NSURLConnection

2008-05-31 Thread Jens Alfke
On 31 May '08, at 8:07 AM, Torsten Curdt wrote: I think you want to schedule the connection for the NSModalPanelRunLoopMode runloop mode. This is the mode that is used for modal windows. You mean with scheduleInRunLoop:forMode: ? ...but that's only available since 10.5 I don't know of

Re: runloops and NSURLConnection

2008-05-31 Thread Torsten Curdt
On May 31, 2008, at 16:09, Michael Vannorsdel wrote: I think you want to schedule the connection for the NSModalPanelRunLoopMode runloop mode. This is the mode that is used for modal windows. You mean with scheduleInRunLoop:forMode: ? ...but that's only available since 10.5 cheers -- T

Re: runloops and NSURLConnection

2008-05-31 Thread Michael Vannorsdel
I think you want to schedule the connection for the NSModalPanelRunLoopMode runloop mode. This is the mode that is used for modal windows. On May 31, 2008, at 7:28 AM, Torsten Curdt wrote: A bit puzzled ...seems like I need some advise here. From a NSWindowController I create a modal dia