Re: NSDistributedNotification from root process not posted
Re: NSDistributedNotification from root process not posted
- Subject: Re: NSDistributedNotification from root process not posted
- From: Brian Bergstrand <email@hidden>
- Date: Thu, 11 May 2006 11:04:35 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On May 11, 2006, at 4:08 AM, P Smith wrote:
Hi,
I have a root process launched at startup which posts notification
through
NSDistributedNotificationCenter. A user process, launched after
login, which
has registered for this notification does not receive it.
Note: When the same process is launched as user process, the observer
receives the notification.
Has anyone come across such a situation? Is it a known issue? If
the notification from root to user process does not work, what is
the best
way to implement it?
This works fine, so you've likely forgotten the
NSNotificationPostToAllSessions option. By default, notifications are
only sent to the mach session that the process is a member of.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEY2CZedHYW7bHtqIRAlLoAKCv0DmbW3e50z/ibgTFBw60HYH7tACeMBGB
N6AVhdbgIfQVsZe7NtCt3ps=
=rulD
-----END PGP SIGNATURE-----
_______________________________________________
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