Reply To: Issues using Syphon in a command line tool

Home Forums Syphon Syphon Development – Developer Issues using Syphon in a command line tool Reply To: Issues using Syphon in a command line tool

#58950
bangnoise
Keymaster

Hi

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, 8 months ago by bangnoise.