Re: NSTextView won't update via NSThread

2009-11-08 Thread Dalton Hamilton
On Nov 6, 2009, at 5:08 PM, Stephen J. Butler wrote: On Fri, Nov 6, 2009 at 3:50 PM, Dalton Hamilton wrote: Well, from the code you've shown us, you call "[outHandle readDataToEndOfFile]". Which means it waits for all the data before updating the view. So yes, the view will be empty until t

Re: NSTextView won't update via NSThread

2009-11-06 Thread Stephen J. Butler
On Thu, Nov 5, 2009 at 6:20 AM, Dalton Hamilton wrote: > Does anyone have any idea why NSTextView won't update when the code is a > thread? Because everything in AppKit is thread-unsafe, unless specifically marked safe. ___ Cocoa-dev mailing list (Coco

Re: NSTextView won't update via NSThread

2009-11-06 Thread Ken Thomases
On Nov 5, 2009, at 6:20 AM, Dalton Hamilton wrote: Does anyone have any idea why NSTextView won't update when the code is a thread? Yes, because Cocoa generally doesn't support manipulating the GUI from any thread other than the main thread. Read through this: http://developer.apple.com/m

NSTextView won't update via NSThread

2009-11-06 Thread Dalton Hamilton
Hello, I'm doing the below and when I call the -runTask: method is called from the main run loop (no threading) with [self runTask:self]; the NSTextView updates great; however, when I call -runTask via [NSThread detachNewThreadSelector:@selector(runTask:) toTarget:self w