Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-12 Thread Michael Ash
2009/5/12 Dragan Milić mi...@mac.com: On uto 12. 05. 2009., at 06:54, Michael Ash wrote: I think you've misunderstood. There is no problem with the fork/exec approach here. You actually are spot on with that remark, my knowledge of UNIX system calls is not very broad, on the contrary it's

Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Dragan Milić
Hello all, Is there any way to initialise and use WebKit out of the main thread? I know this message may look like good candidate for the Webkit-dev mailing list, but I actually don't want to use WebKit directly, it's just a consequence of trying to create NSAttributedString instance

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Douglas Davidson
On May 11, 2009, at 10:53 AM, Dragan Milić wrote: Is there any way to initialise and use WebKit out of the main thread? No, there isn't. This is a fundamental restriction on the use of WebKit. Douglas Davidson ___ Cocoa-dev mailing list

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Dragan Milić
On pon 11. 05. 2009., at 20:07, Douglas Davidson wrote: On May 11, 2009, at 10:53 AM, Dragan Milić wrote: Is there any way to initialise and use WebKit out of the main thread? No, there isn't. This is a fundamental restriction on the use of WebKit. Yes, I know. I just hoped there was

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Stephen J. Butler
2009/5/11 Dragan Milić mi...@mac.com: So, I assume creating attributed strings is not thread safe, but I don't remember anything like that stated in the documentation. In my opinion, that looks like a bug. It is thread safe... if you stick to the Foundation methods. The method you're trying to

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Dragan Milić
On uto 12. 05. 2009., at 00:16, Stephen J. Butler wrote: 2009/5/11 Dragan Milić mi...@mac.com: So, I assume creating attributed strings is not thread safe, but I don't remember anything like that stated in the documentation. In my opinion, that looks like a bug. It is thread safe... if

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Gwynne Raskind
On May 11, 2009, at 7:42 PM, Dragan Milić wrote: So, I assume creating attributed strings is not thread safe, but I don't remember anything like that stated in the documentation. In my opinion, that looks like a bug. It is thread safe... if you stick to the Foundation methods. The method

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Michael Ash
2009/5/11 Dragan Milić mi...@mac.com: On pon 11. 05. 2009., at 20:07, Douglas Davidson wrote: On May 11, 2009, at 10:53 AM, Dragan Milić wrote: Is there any way to initialise and use WebKit out of the main thread? No, there isn't.  This is a fundamental restriction on the use of WebKit.

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Michael Ash
2009/5/11 Gwynne Raskind gwy...@darkrainfall.org: This is workable, but make sure you use a fork()/exec() pair to re-execute yourself in that case, and use argc/argv in your main() to determine which mode to run in. Don't just use fork() by itself - there are severe limits to what you can do

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Dragan Milić
On uto 12. 05. 2009., at 01:52, Michael Ash wrote: 2009/5/11 Dragan Milić mi...@mac.com: On pon 11. 05. 2009., at 20:07, Douglas Davidson wrote: On May 11, 2009, at 10:53 AM, Dragan Milić wrote: Is there any way to initialise and use WebKit out of the main thread? No, there isn't. This

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Dragan Milić
On uto 12. 05. 2009., at 01:55, Michael Ash wrote: 2009/5/11 Gwynne Raskind gwy...@darkrainfall.org: This is workable, but make sure you use a fork()/exec() pair to re- execute yourself in that case, and use argc/argv in your main() to determine which mode to run in. Don't just use fork() by

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Adam R. Maxwell
On May 11, 2009, at 2:56 PM, Dragan Milić wrote: On pon 11. 05. 2009., at 20:07, Douglas Davidson wrote: On May 11, 2009, at 10:53 AM, Dragan Milić wrote: Is there any way to initialise and use WebKit out of the main thread? No, there isn't. This is a fundamental restriction on the use

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Michael Ash
2009/5/11 Dragan Milić mi...@mac.com: On uto 12. 05. 2009., at 01:55, Michael Ash wrote: 2009/5/11 Gwynne Raskind gwy...@darkrainfall.org: This is workable, but make sure you use a fork()/exec() pair to re-execute yourself in that case, and use argc/argv in your main() to determine which

Re: Creating NSAttributedString objects using WebKit in secondary thread

2009-05-11 Thread Dragan Milić
On uto 12. 05. 2009., at 06:54, Michael Ash wrote: I think you've misunderstood. There is no problem with the fork/exec approach here. You actually are spot on with that remark, my knowledge of UNIX system calls is not very broad, on the contrary it's rather limited I'd say. Thank you all