Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HARDWARRIOR

macrumors member
Original poster
Nov 17, 2008
52
0
Hi!
I have a non-GUI app. And I need it to launch another application. That "another application" is mine too, so I can change a code of it.
Because first app is non-GUI it has no singletone of UIApplication and no custom URL can be sent.

system и execv commands don't execute a code passed to them and return -1 in a code like this:
Code:
NSString *path = [[NSString alloc] initWithString:@"killall SpringBoard"];
int res = system([path UTF8String]);
NSLog(@"res = %d", res);

Any ideas how to solve such a problem?

PS I don't want all of this to be appStore approvable! This is for jailbroken devices
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.