0

In QT you can emit signals and use slots to act upon them. Otherwise I have write lots of threads to wait for signals through global variables to act on. QT's signals and slots seem to be much more efficient.

How to emit and receive signals in Objective-c like QT with signals and slots? thx

jdl
  • 6,151
  • 19
  • 83
  • 132

1 Answers1

0

This could be done via NSNotificationCenter to broadcast NSNotification objects to other objects. For a simple example see this post.

Community
  • 1
  • 1
Nejat
  • 31,784
  • 12
  • 106
  • 138