March 25, 2015 at 2:16 pm #58950
If your main thread isn’t servicing a run-loop (as it may not be in a command-line tool), then the notifications for server discovery won’t get serviced.
For example, the following works:
SyphonServerDirectory *sharedDirectory = [SyphonServerDirectory sharedDirectory]; // Accessing it causes Syphon to begin finding servers [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1]]; serverMatches = [sharedDirectory servers];
- This reply was modified 5 years, 11 months ago by bangnoise.