Web links with PyObjC & Cocoa

Discussion in 'Mac Programming' started by aarplane, Aug 10, 2008.

  1. aarplane macrumors newbie

    Joined:
    Dec 8, 2005
    Location:
    Canada
    #1
    I'm a student developer (first-time for the Mac), and I've been toying around with PyObjC, and I would like to know how to make an NSimage (arrow) open a link in the default browser. The code is all in Python.

    Thanks!

    -Aaron
     
  2. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #2
    I would suggest checking out NSButton and NSWorkspace (particularly the openURL: method on NSWorkspace).
     

Share This Page