Created
October 24, 2012 15:02
-
-
Save catlan/3946586 to your computer and use it in GitHub Desktop.
Little Snitch and his Friends
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"com.metakine.handsoff"]) | |
{ | |
NSAlert *alert = [NSAlert alertWithMessageText:@"Letter Opener found \"Hands Off!\" application" | |
defaultButton:@"OK" | |
alternateButton:nil | |
otherButton:nil | |
informativeTextWithFormat:@"Make sure connections to www.creativeinaustria.com are allowed in \"Hands Off!\""]; | |
[alert setIcon:[NSImage imageNamed:OMiCIcon]]; | |
[alert runModal]; | |
} | |
else if ([[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"com.radiosilenceapp.client"]) | |
{ | |
NSAlert *alert = [NSAlert alertWithMessageText:@"Letter Opener found \"Radio Silence\" application" | |
defaultButton:@"OK" | |
alternateButton:nil | |
otherButton:nil | |
informativeTextWithFormat:@"Make sure connections to www.creativeinaustria.com are allowed in \"Radio Silence!\""]; | |
[alert setIcon:[NSImage imageNamed:OMiCIcon]]; | |
[alert runModal]; | |
} | |
else if ([[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"at.obdev.LittleSnitchConfiguration"]) | |
{ | |
NSAlert *alert = [NSAlert alertWithMessageText:@"Letter Opener found \"Little Snitch\" application" | |
defaultButton:@"OK" | |
alternateButton:nil | |
otherButton:nil | |
informativeTextWithFormat:@"Make sure connections to www.creativeinaustria.com are allowed in \"Little Snitch!\""]; | |
[alert setIcon:[NSImage imageNamed:OMiCIcon]]; | |
[alert runModal]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice idea Christopher. I'm stealing it ;-)