How do I add code for opening a url from a label or button in a xCode project?
aafuss1 macrumors 68000 Original poster May 5, 2002 1,598 2 Gold Coast, Australia 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 15, 2008 8 0 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.