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
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
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