• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSNotificationCenter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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





Thanks

Fred

 _______________________________________________
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

  • Prev by Date: Re: NSNotificationCenter
  • Next by Date: Re: NSNotificationCenter
  • Previous by thread: Re: NSNotificationCenter
  • Next by thread: Re: Issue With the Eclipse
  • Index(es):
    • Date
    • Thread