summaryrefslogtreecommitdiff
path: root/uiopen.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-08-18 18:00:24 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2009-08-18 18:00:24 +0000
commit2a72f832e35d56a748537c894b00a236bae8f16a (patch)
treebd051fda8c5ed41ab9d87a4bfe1c83590e3794fc /uiopen.mm
parent7fb7ce13deab7a4d127f5f04e0c82069a6cf2014 (diff)
UIKit Tools is not part of Telesphoreo.
Diffstat (limited to 'uiopen.mm')
-rw-r--r--uiopen.mm14
1 files changed, 14 insertions, 0 deletions
diff --git a/uiopen.mm b/uiopen.mm
new file mode 100644
index 0000000..ab4e2fe
--- /dev/null
+++ b/uiopen.mm
@@ -0,0 +1,14 @@
+#import <UIKit/UIKit.h>
+#include <stdio.h>
+
+int main(int argc, char *argv[]) {
+ if (argc != 2)
+ fprintf(stderr, "usage: %s <url>\n", argv[0]);
+ else {
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ [[UIApplication alloc] openURL:[NSURL URLWithString:[NSString stringWithUTF8String:argv[1]]]];
+ [pool release];
+ }
+
+ return 0;
+}