• 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: Substitute for kill(2)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Substitute for kill(2)?


  • Subject: Re: Substitute for kill(2)?
  • From: James Walker via Cocoa-dev <email@hidden>
  • Date: Tue, 25 Jul 2023 10:39:31 -0700
  • Arc-authentication-results: i=1; rspamd-bd8c8f549-f5v6h; auth=pass smtp.auth=hostingeremail smtp.mailfrom=email@hidden
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1690306776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=s32AT1/PxDxiFM4N2sb8sSgAh4jdygl8LRfyFJYQXKM=; b=yJCIuuEXIoT5nDA/uY5Lp98/mpwcFoN+9d6FDW4r9/xQmbN/NOvCDsWEPrqVEZyxa2I8PY yZ322UQD2CIyR7j4jqsqknDeVrQPmnLIPIDNY/RkPMIqr1oTR5307qXKFJ3vSjBietfRYO 7hoLG/CM9edeXqZtQPQdm+90CpCB4LQP5Y2mRlFhrs5whghj33uGpiala4vMNd9IZ1grD7 ldz4wr6OxsQ//miPmLYUunaQ1uh0ZomRblb7TCIH5lGkzIYKrxy9hOoXQxQOFA08mY3G2u jt6cEg9yFMZ1f83aIfElMnk6LEEIOLsKUykTiOhPogFu2jMbhLsop/VnpjiELg==
  • Arc-seal: i=1; s=arc-2022; d=mailchannels.net; t=1690306776; a=rsa-sha256; cv=none; b=IGpUrnMtx6J9CJOxM4JGrg6nVfb5JVL++QMuMfa+ISCGeUwtei+AaEmAe+G3E+jKK2W+FU SMiXoGohFv1DX5Dah/XEvW0vum7VFOtN9WjMpti6UH4ysvTAp4FKIf4dH1bTzS84RYYqte dNivsE8nLcRYCTu9cwMde6wAtN93ZyLLC5f+PZiY5q/otT67v5dXjpbr5ahQXFjHA2jR7f jRk81yZ/uqaiY6DtaO7mhWJTb63RywS6tXyubrDS134QX6bSQh/ZRqiYVwghKVDKQYGy8w r2qjSyCTVqnkU5BsJDpsW6VIy70xSNDYCaL+sZgjywNmSycOhaovBXXwgmu1/Q==

On 7/25/23 7:38 AM, Rob Petrovec via Cocoa-dev wrote:
NSDistributedNotificationCenter is a way to send a notification out across the
system. Only processes that are listening for the notification will receive it and
have a chance to do something with it. It’s like yelling out in a crowded room to
tell a single person something. Everyone will hear your message, but only one will
be listening. Make sense?
https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter?changes=_4&language=objc

But what it really sounds like you want to use XPC (Cross Process
Communication) for a more targeted messaging (possibly with payloads) between
your app and menuling.
https://developer.apple.com/documentation/xpc?language=objc

An XPC service isn't an app, and wouldn't you need an app to run an NSStatusItem, which I assume is what's meant by a "menu bar item"?

See <https://developer.apple.com/forums/thread/715338> for a discussion of XPC versus some other methods of communication.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Substitute for kill(2)? (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)
 >Re: Substitute for kill(2)? (From: Alex Zavatone via Cocoa-dev <email@hidden>)
 >Re: Substitute for kill(2)? (From: Rob Petrovec via Cocoa-dev <email@hidden>)
 >Re: Substitute for kill(2)? (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)
 >Re: Substitute for kill(2)? (From: Rob Petrovec via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Substitute for kill(2)?
  • Next by Date: Re: Substitute for kill(2)?
  • Previous by thread: Re: Substitute for kill(2)?
  • Next by thread: Re: Substitute for kill(2)?
  • Index(es):
    • Date
    • Thread