rsms / peertalk

iOS and Mac Cocoa library for communicating over USB
https://rsms.me/peertalk/
MIT License
3.43k stars 505 forks source link

Make PTUSBChannel work correctly in a bundle-less (e.g. cli) app #21

Closed philikon closed 9 years ago

philikon commented 9 years ago

Without this fix, I get repeated disconnected/connected events in a pure command-line app (no bundle, no Info.plist). Bundling the command line tool as a full-blown Mac .app with an Info.plist fixes it, but that's not ideal. I believe the real fix is in this patch, which has the code path that deals with the absence of a bundle mimic the functionality other code path.

frantic commented 9 years ago

:+1:

philikon commented 9 years ago

pingsies? :)

rsms commented 9 years ago

Nice catch!