Re: NSNotificationCenter
Re: NSNotificationCenter
- Subject: Re: NSNotificationCenter
- From: Frédéric JECKER <email@hidden>
- Date: Tue, 01 Mar 2011 13:13:27 +0100
- Thread-topic: NSNotificationCenter
Hi Christian and thanks for your answer.
I'm just worrying about performances as what is requested can rapidly grow into a performance hog. Basic example : I wan't to trigger some actions when a particular object is saved and if this object conforms to certain criterias. If I use NSNotificationCenter, the hand will be returned to the user : - As soon the notification sent to the NSNotificationCenter, because the message dispatch and processing will be done on a separate thread
- Once all the message processing work is done, because this will happen within the request/response loop
Fred
De : Christian TROTOBAS < email@hidden> Date : Tue, 1 Mar 2011 10:52:17 +0100 À : Frédéric JECKER < email@hidden> Objet : Re: NSNotificationCenter
Hello Fred On 1 mars 2011, at 10:48, Frédéric JECKER wrote: Hello,
Some customers asked us for adding some automatic per user notifications when some specific events happen within our application (each user should be able to specify its own criterias). I'm looking at NSNotification/NSNotificationCenter for this purpouse but I'm wondering if the notification dispatching and processing is performed on the main thread or on a separate one.
Why is it important for you ? As far as you register for notifications, it works, with the guarantee of FIFO, even among multiples threads.
If I remember correctly :D
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden