]> git.saurik.com Git - uikittools.git/blob - uiopen.mm
Adding gssc and updating uicache.
[uikittools.git] / uiopen.mm
1 #import <UIKit/UIKit.h>
2 #include <stdio.h>
3
4 int main(int argc, char *argv[]) {
5 if (argc != 2)
6 fprintf(stderr, "usage: %s <url>\n", argv[0]);
7 else {
8 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
9 [[UIApplication alloc] openURL:[NSURL URLWithString:[NSString stringWithUTF8String:argv[1]]]];
10 [pool release];
11 }
12
13 return 0;
14 }