Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Project Builder to recognize stylesheets as editable files



on 6/26/03 10:08 AM, Jerry Porter at email@hidden wrote:

> To All,
>
> I Found a way to coerce Project Builder to recognize style sheets as
> editable text files.
> It appears the problem was that PB did not know what to do with the
> .css extension.
>
> ...
> AND NOW THE FIX!
>
> NOTE: Make a copy of your original files first before performing this
> tweak!
>
> There is a plist file located in
> /System/Library/PrivateFrameworks/PBXCore.framework/Resources called
> "Standard file types.pbfilespec".
>
> This file contains all the magic file types and their "opener"
> definitions.
>
> To add files with a ".css" extension, locate a key in the file called
> "PBXHTMLFileType"
>
> You should see a dictionary construct that looks something like:
> {
> Identifier = text.html;
> BasedOn = text;
> Extensions = (htm, html, htmld);
> MIMETypes = ("text/html");
> Class = PBXHTMLFileType;
> ComputerLanguage = html;
> },
>
> Change:
> Extensions = (htm, html, htmld);
> to:
> Extensions = (css, htm, html, htmld);
>
> Save the file.

There's a cleaner way to do this. Create a new .pbfilespec file with the
contents:

(
{
Identifier = text.html.css;
BasedOn = text.html;
Extensions = (css);
}
)

Put the file in "~/Developer/ProjectBuilder Extras/Specifications" and
relaunch PB. (If you're using Xcode, the file needs to go into
"~/Library/Application Support/Apple/Developer Tools/Specifications".)

By creating a local file type specification you avoid loosing it the next
time you install new developer tools.

Dave
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Getting Project Builder to recognize stylesheets as editable files (From: Jerry Porter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.