Re: NSTextField refreshes are wacky.
Re: NSTextField refreshes are wacky.
- Subject: Re: NSTextField refreshes are wacky.
- From: David Remahl <email@hidden>
- Date: Wed, 13 Mar 2002 17:54:12 +0100
>
At 8:00 PM -0800 3/12/02, Kurt Revis wrote:
>
> You can use DO to communicate across threads, and apparently it's
>
> the Apple-suggested way to do it. I think it's overly complicated
>
> and confusing, though--I remember trying to do it when I started
>
> learning Cocoa, and I just wasted a lot of time floundering. Maybe
>
> the documentation is better these days, though.
>
>
I did find the documentation a bit disorganized, but I was able to
>
figure it out. These two pages were the key:
>
>
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingT
>
opics/DistrObjects/Tasks/vending.html
>
>
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingT
>
opics/DistrObjects/Tasks/accessing.html
>
>
And here is a minimal example of the technique I used, which is
>
generally applicable to influencing AppKit objects from worker
>
threads.
There is a nice class called ThreadWorker here:
<
http://iharder.sourceforge.net/macosx/threadworker/>
It simplifies thread usage in many cases but may not be universally useful.
I agree that threading/DO overly complicated for simple tasks as it is, but
this class will put in another layer of abstraction. Read the quite nice
documentation!
/ david
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.