• 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: notification received twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: notification received twice


  • Subject: Re: notification received twice
  • From: Ivan Kourtev <email@hidden>
  • Date: Wed, 8 Feb 2006 17:56:17 -0500

Aha, that did it!  Thanks to all who replied.

I was improperly registering to receive the notification every time I was creating a new window and I only registered with the name because this is the only notification sent around in my app. I fixed that and it's working fine now. It makes sense now.

--
ivan

On Feb 8, 2006, at 5:44 PM, AgentM wrote:

Are you observing again? You only need to request notification once. If you loop again, do you get three notifications?

On Feb 8, 2006, at 4:36 PM, Ivan Kourtev wrote:

Hello,

I have a very simple app where a single window is created. After it is created, it measures a small amount of time and posts a notification that the app controller listens for. The app controller destroys the window , creates a new one and the whole process repeats.

The problem is the second time around, when the notification seems to be sent twice! I am fairly positive this is the case, even logged the events of sending and receiving the notification and that is exactly what the log shows - one sent notification, but two received!

What's going on here? I've take all the usual precautions -- including checking which object sends the notification? I searched and it seems some people had similar problems in the past (not fully resolved in these forums). Any helpful suggestion?

-- ivan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >notification received twice (From: Ivan Kourtev <email@hidden>)

  • Prev by Date: Re: notification received twice
  • Next by Date: Re: ivar name clashes with gcc3
  • Previous by thread: Re: notification received twice
  • Next by thread: [JOB] Cocoa Developer. Stockholm, Sweden.
  • Index(es):
    • Date
    • Thread