Any replacement of Observer/listener for linux?

i am looking for observer/listener replacement for linux. thanks.

I encourage you to clarify your request:

  • You say “replacement” but aren’t clear about what you’re replacing or why you’re replacing it.

  • Are you looking to just import a Swift package? Or for guidelines on how you’d implement this yourself?

  • “observer/listener” is a very general concept. Can you be more specific about your requirements?

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

Look for a swift package

Look for a swift package

OK, that answers my second question. What about 1 and 2?

ps While I appreciate the succinctness of your single-line posts, this process will go a bit quicker if you’re a little more expansive.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

1 Like

If I am reading the wikipedia page correctly, isn't NotificationCenter an example of the pattern?

I think NotificationCenter (bridged to Objective-C NSNotificationCenter) is implemented only in Darwin systems as part of AppKit/UIKit. Don't think that it is implemented in Linux, et al.

It's in Foundation.

1 Like

Did not know that! I don't keep up with open-source implementations of the Darwin frameworks. Just program on Macs.

I also thought like that. haha.

will try. thanks.

Terms of Service

Privacy Policy

Cookie Policy