Re: List of delegates
Re: List of delegates
- Subject: Re: List of delegates
- From: Matt Rollefson <email@hidden>
- Date: Thu, 9 May 2002 18:48:45 -0700
On Thursday, May 9, 2002, at 11:17 , email@hidden wrote:
Matt Rollefson wrote:
|please be specific about the "lot" to be
|desired about the current documentation.
The particular thing I keep finding is that it is woefully inadequate
on the subject of using Foundation and AppKit classes in conjunction
with multiple threads. For instance, I don't believe that
NSNotificationCenter's documentation states that the notification is
delivered to the same thread that posts the notification. In a
multiply-threaded application, this can be very important to know.
(Yes, there's a list of classes likely to be thread-safe, but all too
often, that's just not enough information.)
That's definitely something we should note. Please file a bug.
Especially, it would be useful to include instruction--and sample
code--on how to have the UI thread and non-UI threads interact, so that
background threads can safely update the UI as necessary, and the UI
control the background threads. (Several discussions have appeared on
this list recently on exactly that subject.) Often, this translates
into a need to deliver notifications across threads (usually, from a
non-UI thread to the UI thread), a function that doesn't appear to
exist.
You can always write your own; the good news is there is a method that
does what you want being introduced in a future release. However, we do
provide instruction and sample code for setting up connections between
threads, in the multithreading topic:
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
Multithreading/index.html
Look specifically at the "Forming Connections Between Threads" document.
Have you read this document? If so, in what ways was it inadequate?
Matt Rollefson (Rollie)
Manager: Cocoa & Developer Tools
Technical Publications
Apple Computer, Inc.
_______________________________________________
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.