Accept urls as arguments to the OSX binary and open them in different windows.

svn path=/trunk/netsurf/; revision=12240
This commit is contained in:
François Revel 2011-04-26 15:38:28 +00:00
parent 769011911c
commit 06f80d731f

View File

@ -179,7 +179,13 @@ int main( int argc, char **argv )
netsurf_init(&argc, &argv, options, messages);
[cocoa_prepare_app() run];
NSApplication *app = cocoa_prepare_app();
for (int i = 1; i < argc; i++) {
browser_window_create( argv[i], NULL, NULL, true, false );
}
[app run];
netsurf_exit();