What thread is your Obj-C code running on? The thread has to have a runloop, otherwise it won’t receive events, such as notifications. (You almost certainly want to do this on the main thread.)
What thread is your Obj-C code running on? The thread has to have a runloop, otherwise it won’t receive events, such as notifications. (You almost certainly want to do this on the main thread.)