Skip to content

Instantly share code, notes, and snippets.

work, work, work!

Abhishek Jairath abhishekjairath

work, work, work!
Block or report user

Report or block abhishekjairath

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
abhishekjairath / nodobjc-macOS-notification-listener.js
Created Mar 12, 2017
Using 'nodobjc' a nodeJS->ObjectveC bridge to listen to distributed notification centre of macOS/OSX.
View nodobjc-macOS-notification-listener.js
var $ = require('nodobjc')
var GetSongs = $.NSObject.extend('Delegate');
GetSongs.addMethod('getMySongs:', 'v@:@', function(self, _cmd, notif){
var userInfo = notif('userInfo')
var keys = userInfo('keyEnumerator');
You can’t perform that action at this time.