Sunday, January 18, 2015

MMWormhole: Message Passing Between iOS Apps and Extensions

MMWormhole (via Marco Arment):

MMWormhole creates a bridge between an iOS extension and its containing application. The wormhole is meant to be used to pass data or commands back and forth between the two locations. Messages are archived to files which are written to the application’s shared App Group. The effect closely resembles interprocess communication between the app and the extension, though true interprocess communication does not exist between extensions and containing apps.

The wormhole also supports CFNotificationCenter Darwin Notifications in an effort to support realtime change notifications. When a message is passed to the wormhole, interested parties can listen and be notified of these changes on either side of the wormhole. The effect is nearly instant updates on either side when a message is sent through the wormhole.

See also: iOS IPC via NSFileCoordinator and NSFilePresenter.

Comments RSS · Twitter

Leave a Comment