Re: postNotificationName Executes Many Times for a Single Invocation

2011-06-06 Thread Bing Li
Dear Graham, You are right. I am trying to fix the bug. Thanks so much! Best regards, Bing On Mon, Jun 6, 2011 at 9:46 PM, Graham Cox wrote: > > 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 notificatio

Re: postNotificationName Executes Many Times for a Single Invocation

2011-06-06 Thread Graham Cox
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 as

postNotificationName Executes Many Times for a Single Invocation

2011-06-06 Thread Bing Li
Dear all, I got a problem which confused me when using postNotificationName. The method that invokes "postNotificationName" is as follows. The line that includes "postNotificationName" runs multiple times even though the method is invoked only one time. Why could it happen? -(void)notifyMessageRe