If file association is all you need then the solution is quite simple.
Assume you project is called project1 and the file you want to open has extension .tst.
- edit project1.app/Contents/Info.plist
- look for <key>CFBundleDocumentTypes</key>
- replace
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
with
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>tst</string>
</array>
<key>LSIsAppleDefaultForType</key> <true/>
- save the file
- move project1.app with Finder into another directory (and move it back if you like). Launching project1 isn't enough to register Info.plist with Launch Services. Moving the application bundle in Finder does.
If you just want to open .tst files and not save them, you can leave CFBundleTypeRole Viewer.
If you want Finder to display your icon for your file extension then add also
<key>CFBundleIconFile</key> <string>myapplication.icns</string>
just after the previous lines.