Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm banging my brain against the wonderful lib xport that is cocos2d-x from the original cocos2d iOS library.

What I want to ask is how to open a web link in the safari browser? I don' know how to link the original objc code

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:]];

I have tried using the LUA engine, that is capable of executing shell commands, but I cannot find the safari app path to launch it.

Thanks, people.

share|improve this question

closed as off topic by Tetrad Mar 13 '12 at 16:24

Questions on Game Development Stack Exchange are expected to relate to game development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

This probably belongs on StackOverflow. – Jonathan Dickinson Mar 13 '12 at 12:53
I posted it there too, but why? – MLProgrammer-CiM Mar 13 '12 at 13:07
It isn't really specific to game development - notice how you are not actually using cocos2d-x to open the page (in your attempt) but rather the base libraries. The likelyhood of it being due to cocos2d-x is very small. Please don't cross post between S/E sites either - the moderators will move your question to the S/E website with the correct area of expertise. – Jonathan Dickinson Mar 13 '12 at 13:16
Exact duplicate of:… - which has been answered. I can't reflag the question. – Jonathan Dickinson Mar 13 '12 at 13:18