On 06/06/2011, at 11:40 PM, Bing Li wrote:

> The log is shown as follows similarly. This log tells a single invocation
> got three notifications. Why?


Probably because you subscribed to the same notification three times.

The notification center doesn't bother to work out that you've already asked 
for a given notification from a given target, it just adds it to its list of 
subscribers. If that contains the same object three times, it gets called three 
times.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to