• 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: NSDistributedNotification from root process not posted
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSDistributedNotification from root process not posted (From: "P Smith" <email@hidden>)

  • Prev by Date: NSNotificationQueue and NSNotificationCoalescingOnSender
  • Next by Date: Re: The resize controls used un Xcode
  • Previous by thread: Re: NSDistributedNotification from root process not posted
  • Next by thread: Programmatically resizing an NSWindow based on window contents
  • Index(es):
    • Date
    • Thread