aafuss1 macrumors 68000 Original poster Jul 31, 2008 #1 How do I add code for opening a url from a label or button in a xCode project?
M masonmey macrumors newbie Jul 31, 2008 #2 I am not sure which part you are having trouble with but here is some code to open a URL. [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString😡"http://www.apple.com"]]; If you need help setting up the event on the button, I would check out this http://cocoadevcentral.com/d/learn_cocoa/. Good luck.
I am not sure which part you are having trouble with but here is some code to open a URL. [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString😡"http://www.apple.com"]]; If you need help setting up the event on the button, I would check out this http://cocoadevcentral.com/d/learn_cocoa/. Good luck.