Separate names with a comma.
Discussion in 'Mac Programming' started by aafuss1, Jul 31, 2008.
How do I add code for opening a url from a label or button in a xCode project?
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.