Registering for NSNotification during notification post
Registering for NSNotification during notification post
- Subject: Registering for NSNotification during notification post
- From: Drew McCormack <email@hidden>
- Date: Mon, 10 Jun 2002 21:27:36 +0200
Can you register for a notification in a method called during the posting of a notification?
I am trying to do exactly this. It works for one notification, but another one does not seem to get registered.
To make a bit more clear what I am on about: I post a notification, say @"Notif1". The default notification center calls a method, and in that method I try to register for other notifications, say @"Notif2" and @"Notif3". Later, when @"Notif3" is posted, the registered selector does not get called. The correct selector does get called for @"Notif2". The order that @"Notif2" and @"Notif3" are registered has no effect.
To complicate things further, this all happens in a worker thread.
Can anyone tell me if this is allowed, and, if so, what could be going wrong?
Drew McCormack
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.