Skip to content

Instantly share code, notes, and snippets.

@catlan
Created October 24, 2012 15:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catlan/3946586 to your computer and use it in GitHub Desktop.
Save catlan/3946586 to your computer and use it in GitHub Desktop.
Little Snitch and his Friends
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];
}
@lksoft
Copy link

lksoft commented Feb 21, 2014

Nice idea Christopher. I'm stealing it ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment