[Insight-developers] Xcode & .txx: How to make them work together!

John Galeotti jgaleotti at cmu.edu
Thu Jul 29 14:43:55 EDT 2004


Hi everyone.  I thought you all would be really interested to know how 
to make Xcode (the development environment for OS X) work properly with 
.txx files.  I haven't throughly tested this, but it seems to work.

John Galeotti
jgaleotti at cmu.edu


Remove any record for "txx" from 
~/Library/Preferences/com.apple.LaunchServices.plist
Reboot
Backup & edit the following 3 files to add "txx" to the lists 
containing "hxx";
   *** Be sure that your editor does not break any of the really, really 
***
   *** long lines in these files!                                        
***
Reboot

Developer/Applications/Performance\ Tools/CHUD/Shark.app/Contents/
Frameworks/PBXCore.framework/Resources/Standard\ file\ types.pbfilespec

             {
                 Identifier = sourcecode.cpp.h;
                 BasedOn = sourcecode.cpp;
                 Extensions = (hp, hpp, hxx, "h++", H, txx); // John 
Galeotti added txx for template-definition "header" files on 7-29-04
             },


/System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
Standard\ file\ types.pbfilespec

             {
                 Identifier = sourcecode.cpp.h;
                 BasedOn = sourcecode.cpp;
                 Extensions = (hp, hpp, hxx, "h++", H, "pch++", txx);
                 AppliesToBuildRules = no;
             },


Developer/Applications/Xcode.app/Contents/Info.plist

                 <dict>
                         <key>CFBundleTypeExtensions</key>
                         <array>
                                 <string>hp</string>
                                 <string>hpp</string>
                                 <string>hxx</string>
                                 <string>h++</string>
                                 <string>pch++</string>
                                 <string>txx</string>
                         </array>
                         <key>CFBundleTypeIconFile</key>
                         <string>hfile</string>
                         <key>CFBundleTypeName</key>
                         <string>C++ Header Source File</string>
                         <key>CFBundleTypeRole</key>
                         <string>Editor</string>
                         <key>LSIsAppleDefaultForType</key>
                         <true/>
                         <key>NSDocumentClass</key>
                         <string>PBXSourceFileDocument</string>
                 </dict>



More information about the Insight-developers mailing list