DO vs NSLock with threads and AppKit
DO vs NSLock with threads and AppKit
- Subject: DO vs NSLock with threads and AppKit
- From: Christian Mike <email@hidden>
- Date: Mon, 23 Jul 2001 08:12:46 -0500
I understand that the AppKit is not thread safe. I am a little confused,
however, about when you can use an NSLock to make it thread safe versus when
you must use DO.
For instance, if I am simply sending a setStringValue to an NSTextField,
should I use DO, or will an NSLock be good enough?
Are there cases when an NSLock would not work as opposed to DO?
Thanks.
Michael Christian
Thomson multimedia Inc.