summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2011-04-26 15:38:28 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2011-04-26 15:38:28 +0000
commit06f80d731fce0a96fedc5dcce90fd864a4d7a409 (patch)
treeaaba56b3c96f13963c1f0f014eb1ad9858c083dc /cocoa
parent769011911ce35ccd504c1c2a7059d0332bd40704 (diff)
downloadnetsurf-06f80d731fce0a96fedc5dcce90fd864a4d7a409.tar.gz
netsurf-06f80d731fce0a96fedc5dcce90fd864a4d7a409.tar.bz2
Accept urls as arguments to the OSX binary and open them in different windows.
svn path=/trunk/netsurf/; revision=12240
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/NetsurfApp.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/cocoa/NetsurfApp.m b/cocoa/NetsurfApp.m
index 9ab80fa1b..399ea11d1 100644
--- a/cocoa/NetsurfApp.m
+++ b/cocoa/NetsurfApp.m
@@ -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();