Thank you for this quick response.
I suspected so. Unfortunately,
I just spent five hours straight tracking a random bug – not even remotely 
related to strings – that seemed to occur when a single thread successively 
triggered two events handled by a callback tied to an input source on the event 
loop (took me some time to get that). Of course the callback isn't thread safe… 
and never was designed to be since tied to the runloop. Until now...

Jean

On 8 mai 2013, at 00:40, Mike Abdullah wrote:

> 
> On 7 May 2013, at 23:37, Jean Suisse wrote:
> 
>> Dear all,
>> 
>> I am wondering: 
>> By any chance, could a call to [[NSAttributedString alloc] 
>> initWithHTML:dataUsingEncoding:documentAttributes:] lead to the event loop 
>> being run before the call returns?
> 
> I believe so, yes. It's currently implemented using WebKit, which would 
> generally require spinning the runloop while any asynchronous work is 
> performed.
> 


-----------
Jean Suisse
Institut de Chimie Moléculaire de l’Université de Bourgogne
(ICMUB) — UMR 6302
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to