Ok, like the sound of this :-), so do you mean
[NSEvent startPeriodicEventsAfterDelay:0 withPeriod:0.2]
[NSApp runModalForWindow: myWindow ]
[NSEvent startPeriodicEventsAfterDelay:0 withPeriod:0 ]
And that's all, or do I need to some extra trickery
Thanks
Mark.
> Mark Thomas wrote on 24/6/04, 11:21 am:
>
>> Ah this is going to be a pain, as I need modal style control.
>>
>> Does anyone have any pointers How I could simulate the same thing,
>> via tracking event system.
>>
>> If I was using Carbon. I know how to do this, but I'm still a Coca
>> newbie
>> :-(.
>
> Hack alert!
>
> Try calling [NSEvent startPeriodicEventsAfterDelay:0 withPeriod:0.2]
> before putting up the WebView-containing modal dialog. Put some
> exception handling around that call (it throws if you nest), and
> turn off periodic events when you're done.
>
> If that fixes the problem, then it tells you that you might need
> to do some run loop hackery to make sure that NSURLConnection
> processes events during the modal loop.
>
> We have a similar problem with Carbon Event handling during
> runModalForWindow, and that hack worked around it for a while
> (I'm now trying to figure out a better solution).
>
> Simon
>
>>
>> PS - IS there a radar for the modal problem, otherwise I'll enter
>> one.
>>
>>> On Jun 24, 2004, at 7:08 AM, Mark Thomas wrote:
>>>
>>>> Are there any issues with using web control within a window,
>>>> which is then used in [NSApp runModalForWindow ], as I'm
>>>> seeing that control doesn't seem to come alive, as I have
>>>> loaded in a URL fine.
>>>
>>> Yes, there is an issue with doing that. NSURLConnection delivers
>>> data to the WebKit only in the standard run loop mode. A modal
>>> dialog runs in a different mode. The result is that the WebView
>>> doesn't get any data until you exit the modal run loop.
>>>
>>> This is arguably a design flaw in NSURLConnection that we have
>>> to fix. Until that's done, there's no easy way to use a WebView
>>> in a window running with runModalForWindow.
>>>
>>> -- Darin
>> _______________________________________________ webkitsdk-dev
>> mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev Do not
>> post admin requests to the list. They will be ignored.
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.