Skip to content

Instantly share code, notes, and snippets.

@moyashi
Created February 28, 2011 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moyashi/847215 to your computer and use it in GitHub Desktop.
Save moyashi/847215 to your computer and use it in GitHub Desktop.
SafariのHeaderでopenurlをgrep
-*- mode: grep; default-directory: "~/Dropbox/Mac/SIMBL/SafariHeaders/" -*-
Grep started at Mon Feb 28 20:39:02
grep -nH -i openurl *
AppController.h:58:- (void)openURL:(id)arg1 forcingHTMLMIMEType:(BOOL)arg2;
BrowserContentWebView-BrowserContextMenu.h:27:- (void)openURLInNewTab:(id)arg1 tabLocation:(id)arg2;
BrowserContentWebView-BrowserContextMenu.h:28:- (void)openURLInNewWindow:(id)arg1;
BrowserWebView-FileInternal.h:42:- (BOOL)_openURLExternallyWithRequest:(id)arg1 inFrame:(id)arg2 displayError:(BOOL)arg3;
NSWorkspace-BrowserNSWorkspaceExtras.h:12:- (BOOL)openURL:(id)arg1 withApplicationAtPath:(id)arg2;
NSWorkspace-BrowserNSWorkspaceExtras.h:15:- (BOOL)openURL:(id)arg1 withApplicationWithBundleIdentifier:(id)arg2;
Grep finished (matches found) at Mon Feb 28 20:39:02
SafariからFirefoxにURLを開かせる例
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://hitoriblog.com"] withApplicationWithBundleIdentifier:@"org.mozilla.firefox"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment