Opening url from a label or button

Discussion in 'Mac Programming' started by aafuss1, Jul 31, 2008.

  1. aafuss1 macrumors 68000


    May 5, 2002
    Gold Coast, Australia
    How do I add code for opening a url from a label or button in a xCode project?
  2. masonmey macrumors newbie

    Jul 15, 2008
    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:mad:""]];

    If you need help setting up the event on the button, I would check out this Good luck.

Share This Page