Results 1 to 8 of 8

Thread: Using Cocoa API in VBA

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Tutor
    Joined
    Mar 2005
    Posts
    268
    Location
    Quote Originally Posted by Dreamboat
    So, y'all are the 3 mac users, then? (hee hee...)
    Cheek. I am NUMBER FOUR, I will have you know! (I'd rather be Number Six, but that's a different story.)

  2. #2
    VBAX Tutor
    Joined
    Mar 2005
    Posts
    268
    Location
    kei,

    If you look at the Excel VBA Help pages, there are occasional vague references to being able to call 'Mac code resources'. See, for example, the blurb on the Declare statement. What it all means is anyone's guess.

  3. #3
    VBAX Regular
    Joined
    Jan 2006
    Posts
    56
    Location

    Perl bridge to Cocoa

    kei,
    In case you haven't already found it, the bridge between VB and the Cocoa frameworks is via CamelBones in Perl. CamelBones is an Objective C bridge between Perl and Cocoa. I agree with shades and BlueCamel in starting with Applescript. Depending upon what you are trying to do, Applescript may suffice. If you need full assess to Cocoa, then CamelBones, via Perl, is the way to go.

    I've called my Perl routines via Applescript from VB just fine. There is overhead involved, but it does give you access to the full scope of Perl/Cocoa and OSX from within Office.

    You can check out CamelBones at Sourceforge:

    http://camelbones.sourceforge.net/index.html


    Ed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •