Re: How to make NSURLConnection send delegate messages during runModalForWindow

2008-12-16 Thread Michael Babin
On Dec 16, 2008, at 8:30 AM, an0...@gmail.com wrote: I want to handle the connection events during runModalForWindow, so I use [connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode: [[NSRunLoop currentRunLoop] currentMode]]; in the modal window's windowDidBecomeKey delegate

How to make NSURLConnection send delegate messages during runModalForWindow

2008-12-16 Thread an00na
I want to handle the connection events during runModalForWindow, so I use [connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:[[NSRunLoop currentRunLoop] currentMode]]; in the modal window's windowDidBecomeKey delegate method. But still my connection's delegate methods are not

Re: How to make NSURLConnection send delegate messages during runModalForWindow

2008-12-16 Thread an0
Actually, I tried NSModalPanelRunLoopMode first, but it didn't work; and I was not sure whether NSModalPanelRunLoopMode is exactly the mode of model panel's run loop. Then I thought since the modal panel's delegate method windowDidBecomeKey is called during runModalForWindow, the currentRunLoop