[Insight-developers] Xcode & .txx: How to make them work together!
Zachary Pincus
zpincus at stanford.edu
Thu Jul 29 15:13:00 EDT 2004
Thanks for the information!
Ironically, I just waded through trying to do this very task not two
minutes ago. Though I never got the custom icons working right --
thanks John for that tip.
The only thing that I can add is that the two pbfilespec steps can be
consolidated into creating a single new <whatever>.pbfilsepec file (the
first part of the name before the extension doesn't matter) in
/Library/Application Support/Apple/Developer Tools/Specifications
or of course ~/Library/...
the content of that file can be as simple as:
/* Custom file types */
(
{
Identifier = sourcecode.txx;
BasedOn = sourcecode.cpp.h;
Extensions = (txx);
AppliesToBuildRules = no;
},
)
/* End custom types */
I think that this will work for both XCode and Shark, and any future
dev tools that use pbfilespec files. Also, future dev tools
updates/system updates won't nuke your custom file.
Zach Pincus
Department of Biochemistry and Program in Biomedical Informatics
Stanford University School of Medicine
On Jul 29, 2004, at 11:43 AM, John Galeotti wrote:
> 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>
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
More information about the Insight-developers
mailing list