XCode question - building a ".app"

Discussion in 'Mac Programming' started by toddburch, Oct 20, 2007.

  1. toddburch macrumors 6502a

    Joined:
    Dec 4, 2006
    Location:
    Katy, Texas
    #1
    I've written a C program to dump a file for viewing in hex. I call it "Dumper". It works great as an executable in either a Debug build or a Release build.

    I (think I) want to package it so that I can drag it to the Dock and simply drag and drop a file onto it and have it display the dump output. To do this, I think I need to build a .app, so I would have a Dumper.app in my Applications folder, which I could then drag to the Dock.

    I went through XCode help and saw I needed to create a new Target "Wrapper" to get a .app. I did that, then set my Active Target to Dumper, and built it. A Dumper.app was created - so far, so good. I think.

    I dragged it to my Applications folder. In Finder, I right-clicked the file I wanted to dump and picked "open with", but my Dumper.app was grey-out and not selectable.

    What am I missing???

    Thanks, Todd
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    You may be interested in Platypus.

    I'm not sure if Xcode can do what you want without you having to create a Carbon/Cocoa target and write the code yourself.
     
  3. Lorthirk macrumors member

    Joined:
    May 16, 2007
    #3
    Couldn't the problem be an incorrect/missing file type handling in the main .plist?
     
  4. toddburch thread starter macrumors 6502a

    Joined:
    Dec 4, 2006
    Location:
    Katy, Texas
    #4
    Platypus looks awesome! Thanks! Looks like just what I wanted. Matter of fact, I may have more uses for it than I anticipated, because of its ability to bundle a [ruby] script. !!

    Todd
     
  5. toddburch thread starter macrumors 6502a

    Joined:
    Dec 4, 2006
    Location:
    Katy, Texas
    #5
    ?? I'll have to research my OS X book on this one. I'm familiar with this concept and implementation on Windows - to associate a file type with an application... just have not ventured into this area with OS X yet).

    Thanks!
    Todd
     

Share This Page