Resolved Cocoa URL Scheme app

Discussion in 'Mac Programming' started by DennisBlah, Sep 4, 2014.

  1. DennisBlah, Sep 4, 2014
    Last edited: Sep 8, 2014

    DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #1
    Hi all,

    I'm searching for some tutorial about how to setup a URL scheme and using it for an cocoa app.

    I can only find about iOS apps, not for a mac app.
    Does someone have any good tutorial for me ?

    ____________

    Thanks to superscape I could do this!!!
    Thanks!
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    I'm not sure that that's doable in OSX... I feel like NSWorkspace lets you do anything in Cocoa that you'd want those URL things for in iOS.
     
  3. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #3
    Do you know any tutorial or a sample about this ?

    I can open my cocoa app by throwing the url to safari.
    myApp://

    Now I want to be able to send parameters to there :s
     
  4. superscape macrumors 6502a

    superscape

    Joined:
    Feb 12, 2008
    Location:
    East Riding of Yorkshire, UK
    #4
    Hi,

    Many, many moons ago I did something similar using an AppleScript based technique as documented here:

    http://www.macosxautomation.com/applescript/linktrigger/

    I'm still finding my feet with Obj-C but I'm sure something similar must be possible. Maybe the AppleScript based solution will give you some clues...

    Good luck!
     
  5. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #6
  6. superscape macrumors 6502a

    superscape

    Joined:
    Feb 12, 2008
    Location:
    East Riding of Yorkshire, UK
    #7
    Hopefully you solved it from there. If not, I knocked up a very rough proof of concept app which I'm happy to share with you if its any help.
     
  7. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #8
    I didn't really had time yet to work on it. Will keep in touch :) Thanks!
     

Share This Page