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 protected]> Date : Tue, 1 Mar 2011 10:52:17 +0100 À : Frédéric JECKER <[email protected]> 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 > > > > >> >> Thanks >> >> Fred >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/trotobas%40mac.com >> >> This email sent to [email protected] >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
