Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

toddburch

macrumors 6502a
Original poster
Dec 4, 2006
748
0
Katy, Texas
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
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
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.
 

Lorthirk

macrumors member
May 16, 2007
32
0
Couldn't the problem be an incorrect/missing file type handling in the main .plist?
 

toddburch

macrumors 6502a
Original poster
Dec 4, 2006
748
0
Katy, Texas
Couldn't the problem be an incorrect/missing file type handling in the main .plist?

?? 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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.