Xcode: adding filetype icons

I'd want to open .html and .php files with Xcode, but if i do so their icon will be a blank paper, since Xcode doesn't have the icons for these two file types.
I tried to simply add in the Resources folder two custom icons, html.icns and php.icns, but it doesn't work: which is the right method to do such a thing?

Try the developer forums under OS X Technologies.

Similar Messages

  • Why can't you change the .html/.htm filetype icons for Firefox?

    **Before you read this question: NOTICE I am talking about Firefox Icons on Windows, NOT ON FIREFOX BOOKMARKS/PROGRAM!!!!! Read the question then please, please visit the link so you have a better understanding of what I'm asking with this question!!!!**
    I've been trying to change the FileType Icons for the Firefox Documents for weeks now and there's no solution that I can see. I tried using Filetypes Manager to change the .html/.htm filetypes icons with no luck. Why does Firefox force this change on users when most users that use Firefox do so because of it's ability to be customizable? Even Microsoft Word .doc file icons allow you to change them! Microsoft!!! Why is Firefox forcing everyone to use their ugly filetype icons? &____& I've yet to see this issue not only addressed but solved. Why does Firefox ignore this issue? I'd like my computer's icons to all be top-notch, and Firefox is preventing me from making my weeks of hard work go to naught. Please, please address this issue... if anything, tell your users why your program is forcing the icons on them in the first place when monopolies like Microsoft allow their users to customize program filetype icons.
    If this cannot have a fix, why can't it be a new feature/addition to the newest versions of Firefox?
    Edit: And because people are starting to get 'confused' I've included a screen shot of what I'm talking about because, for the love of god, people, I'm *not* talking about using favicons and bookmarks!
    http://i28.photobucket.com/albums/c231/arcanetheorem/example.png

    The only thing I changed about the question was to add an image and to try and make it more understandable since everyone assumed I was talking about Favicons/Bookmark Icons....
    As for it being a Windows 7 issue and not a Firefox one... if it were just a Windows 7 issue I wouldn't be able to change other application icons or filetype icons on the Windows platform using FileTypes Manager. Firefox, from what I've been able to gather, is not one that can be changed. If I change the filetype icons for Word Documents any other extension (like .mp3/.mp4/.avi/.mkv), I get the changed icon I wanted. However, when you try to change the Firefox .html/.htm filetype extension icons, it doesn't work. Have you tried going through changing your icon filetypes using FileTypes Manager to see this issue? If it were a Windows or FileType Manager issue, then I'd have trouble changing other icons on that platform, no? So what I'm asking with my question is why this is. Why, if you use FileTypes Manager to change Windows7 icons, is Firefox's icons the only ones that won't be changed? Doesn't this fall under Firefox's problem if their icons are under the 'can't be changed' category under Windows? And using shortcut icons is no good for me. When I browse a folder of .html files, I want to see the icons I changed it to, not make a shortcut to every .html file I have just to have a better-looking Visual Style. Defeats the purpose, doesn't it? As for clicking on Properties to change it... Windows 7 doesn't allow this feature anymore, which is why I've been using FileType Manager to change all filetype extension icons.
    Hope that helps clear things up a bit, though I have a feeling I'm just confusing everyone more with what is a simple question/problem....

  • Adding customized Icons

    I was wondering if anyone knows how to add customized icons. I downloaded the Logicconizer, and I added the icons to the empty slots, and opened logic, but I didn't see the new icons, when I clicked on the channel strip where the icon selection is....
    TIA (Thx in advance)

    I don't know about Logicconizer but here's a thread which has the locations for icons.
    http://discussions.apple.com/thread.jspa?messageID=4307778&#4307778

  • Adding 2 icons for a single node on a tree

    Hi,
    I am trying to create a tree to represent objects. These objects can be of different types, and different states. I intend to use two icons for each node in the tree, one signifying the type and the other the status. I am a bit stuck though.
    At present each node has a single icon, and uses a JLabel to add to the tree (with a custom renderer). Is it possible to manipulate the icons so instead of adding 2 16x16icons I can simplify it by adding a 32x16 icon?
    Alternativley is it possible to customise JLabel (or something) to allow two icons to be added and alligned?
    Cheers in advance
    Chris

    Just write your own composite Icon class:
    public class CompositeIcon implements Icon
      private Icon icon1;
      private Icon icon2;
      public CompositeIcon(Icon icon1, Icon icon2)
        this.icon1 = icon1;
        this.icon2 = icon2;
      public int getIconHeight()
        return Math.max(icon1.getIconHeight(), icon2.getIconHeight());
      public int getIconWidth()
        return icon1.getIconWidth() + icon2.getIconWidth();
      public void paintIcon(Component c, Graphics g, int x, int y)
        icon1.paintIcon(c, g, x, y);
        icon2.paintIcon(c, g, x + icon1.getIconWidth, y);
    }Hopefully a slightly more reusable solution. You could write all sorts of different layouts in this way.
    Hope this helps.

  • [solved] Problem adding menu icon to pypanel

    Hello, I'm moving into a new place and I'm putting my desktop in the living room as a community media center since neither me or my roommates own a TV, and I'm the only one with a working desktop. They're used to Windows and a start menu. I'm running Openbox + pypanel and thought I'd make their transition a little easier by adding a start menu icon to pypanel. I followed the instructions here: https://bbs.archlinux.org/viewtopic.php?id=68177 but it isn't working. Everytime I click on the arch icon I just get this in my terminal:
    Error: Invalid key sequence 'C-m'
    Failure converting key sequence 'C-m' to keycodes
    Error: Invalid key sequence 'C-m'
    Failure converting key sequence 'C-m' to keycodes
    xdo_keysequence reported an error for string 'C-m'
    here is the important part of my pypanelrc config:
    ("xdotool key C-m", "/home/neruson/.icons/archlinux/icons/archllinuxiconcrystal128.png"),
    In obkey my key is Ctrl+M and the key text is C-m, anyone know what I'm doing wrong?
    EDIT:
    I should also add I've tried this with the key as SUPER+Space too with the same error.
    EDIT 2:
    Nevermind, solved. I'm just stupid and can't follow directions well... ctrl+m instead of C-m... duh
    Last edited by Mr_ED-horsey (2011-07-15 22:16:47)

    Thanks for the heads up on the scripts.
    ~/.bash_profile has me annoyed though. It's as if it is not being executed. Will have to try adding something with a visible effect to confirm.
    My ~/.bash_profile is owned by me and is executable but it simply will not add the path to the variable.
    Could it be something to do with the way my session is handled?
    I am currently launching my session through GDM via inittab. I know when a session is launched this way, for example, ~/.xinitrc is ignored. Perhaps this is the same for ~/.bash_profile?
    Regarding ~/.bashrc, it does work this way, but it only adds the path when a terminal is launched. I need the path added regardless of a terminal being opened or not.
    Cheers.

  • Filetype Icons

    Hi,
    I'm just wondering how to change the icon of a filetype to the application that I assign to.
    For example, I assign all .wmv files to open using quicktime but the icon of th files are still a 'blank page icon'. How do I assign this to quicktime?
    Another example will be Apple Pages. I assigned .doc extension to it but the icon doesnt change.
    Help will very much be appreciated

    It could be a problem with the icon list:
    (root)/Library/Caches/com.apple.iconservices.store
    You would need an admin password, but you could move it elsewhere, and the system should rebuild it, and that mostly fixed it for me.

  • New Added Applications Icons = White "Crossed out" symbol...

    This is a bit of a minor annoyance, but I wanted to see how the community was dealing with this....
    I find it helpful to have an Alias for "Applications" in my dock -- to the right of the divider. I like to sort it by "Most recently added", so that I'll have the newest application on top of the stack. I realize that the applications have the "universal symbol for 'not'" -- a generic mac icon with a white crossed-out symbol -- because the app hasn't been permissioned yet. i.e. I copied it to the Applications folder but just didn't run it yet. After I run it, I drag the icon out of Applications and then back in the folder and it changes to the real icon.
    This is a true first world problem -- but I just wanted to see if anyone else deals with this and how you work your way around it. (Not such a big deal to just drag the icon and add it back. It's just annoying and looks dumb.) Thanks in advance for your thoughts.

    For me, the crossed-out icon disappears once I've launched the application once and answered yes to the warning whether I want to launch an application that has been downloaded from the internet.
    I don't know if trashing the Dock preferences would help?
    /p

  • Adding an Icon to a JButton Component - Not working

    Hi all,
    Please help me by saying, why the below gevon SSCE doesnt work.
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.AbstractButton;
    import javax.swing.Action;
    import javax.swing.BorderFactory;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.UIManager;
    public class CreateWindow {
        public CreateWindow(String module, String id){
             if(module.equals("mail")){
                  JPanel mail = new JPanel(null);
                  mail.setPreferredSize(new Dimension(500, 350));
                  //Color colr = new Color(222, 236, 255);
                  mail.setBackground(Color.WHITE);
                  JLabel file = new JLabel("File Name:");
                  file.setBounds(18,25,75,50);
                  // Retrieve the icon
                 Icon icon = new ImageIcon("ei0021-48.gif");
                 // Create an action with an icon
                 Action action = new AbstractAction("Button Label", icon) {
                     // This method is called when the button is pressed
                     public void actionPerformed(ActionEvent evt) {
                         // Perform action
                 // Create the button; the icon will appear to the left of the label
                 JButton button = new JButton(action);
                  mail.add(button);
                  buildGUI(mail,500, 350);
        public void buildGUI(JPanel panel, int width, int height)
            JFrame.setDefaultLookAndFeelDecorated(true);
            UIManager.put("activeCaption", new javax.swing.plaf.ColorUIResource(Color.LIGHT_GRAY));
            JFrame f = new JFrame("Propri�t�s:");
            f.setIconImage(new ImageIcon("save.gif").getImage());//need an image file with black background
            changeButtonColor(f.getComponents());
            f.getContentPane().setBackground(Color.WHITE);
            f.getContentPane().add(panel);
            f.getRootPane().setBorder(BorderFactory.createLineBorder(Color.PINK,2));
            f.setSize(width,height);
            f.setLocationRelativeTo(null);
            f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            f.setVisible(true);
          public void changeButtonColor(Component[] comps)
            for(int x = 0, y = comps.length; x < y; x++)
              if(comps[x] instanceof AbstractButton)
                ((AbstractButton)comps[x]).setBackground(Color.LIGHT_GRAY);
                ((AbstractButton)comps[x]).setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
              else if (comps[x] instanceof Container)
                changeButtonColor(((Container)comps[x]).getComponents());
    }I call the above given class constructor as given
    public class Test {
         public static void main(String args[]){
              CreateWindow cw = new CreateWindow("mail","Test.doc");
    }Rony

    RonyFederer wrote:
    I have the images and class files inside
    F:\Testing3\Application\src\booodrive
    Do you have the class files or java files here?
    You should put the gif where the .class files are located, and use getResource as Encephalopathic wrote, or:
    Icon icon = new ImageIcon(ClassLoader.getSystemResource("ei0021-48.gif"));
    When I did as you said using System.out.println(new File("ei0021-48.gif").getAbsolutePath());, I got the following output.
    F:\Testing3\Application\ei0021-48.gif
    That's the current running directory.

  • Help with adding an icon in a JTextPane

    Hy guys,
    i have the following code:
    Document doc = DisplayArea.getDocument();
    String temp = s.substring(0, s.indexOf("Smile"));
             doc.insertString(doc.getLength(), temp , st);
             Style regular = chatArea.addStyle("regular", def);
             Style stl = chatArea.addStyle("icon", regular);
             StyleConstants.setIcon(stl, new ImageIcon("smile.gif"));
             doc.insertString(doc.getLength(), s , stl);
             temp = s.substring(s.indexOf("Smile")+1+"Smile".length(), s.length()) + "\n";
             doc.insertString(doc.getLength(), temp , st);The problme is that after it displays the image the second part of the text on the next line.
    Is there any way to make it be all in one line with the image in the middle ?
    Thx in advance

    Sorry for this guys but i managed to solve it by looking in the forum
    thx anyway for wanting to help

  • Adding Delete Icon in Report with Notification msg

    Hi Friends,
    I want to display Delete icon in every row of report.So i followed the below link and i implemented.But i want to display the Confirmation Notification to the user
    *(eg.Are You sure want to delete this record?)* Before deleting the particular row in Report.How i can achieve this?
    please help me...
    http://apps2fusion.com/at/64-kr/391-oracle-apex-person-details-tutorial-02-delete-functionality

    Hi!
    I think that what you need is something like this: http://apex.oracle.com/pls/otn/f?p=39830:32 (go to Refresh 2 example).
    You can download the application to see how it is implemented but, regarding your particular question, to display a confirmation notification to the user you just have to add a Confirm action in the dynamic action that is fired when you click your delete icon.
    Regards,
    Sergio

  • Adding an icon to a custom panel

    Hi,
    I have created some WindowSWF panels, and want to add an icon to them, so that when they are minimised I can tell what they are. I've googled and checked the 'Extending Flash' docs but can find no reference on how to do this.
    Anyone have any ideas?
    Thanks,
    Owen

    Na prima. Du hast in dem anderen Thread gute Antworten bekommen, also gibt es keinen Grund einen neuen Thread zu starten, obwohl dieses Forum für Deine Frage besser gewesen wäre. Ich mache hier mal dicht, wenn noch Fragen sind, stell sie in Deinem anderen Thread.
    Gruß, Phil

  • Adding Skype Icon to Outlook 2010

    I want to add a Skype call or chat icon. I va ecreated on the Skype page and grabbed the email code. Do I paste an icon into Outlook and link to the pasted code or what?

    I want to add the skype icon/phone number to my outlook 2010 email messages; however, I can only add the picture and not my Skype Phone Number (step 6 below does not work for me).  Can someone provide advice on that?   Thanks.  Interestingly, it automatically occurred in my hotmail account, which links to Outlook.
    1. Go to http://www.skype.com/intl/en/tell-a-friend/wizard/
    2. select function as "add me to skype".
    3. Right click the picture and save it on your computer.
    4. Open a "New email" message in Outlook 2010.
    5. insert the picture.
    6. Right lcik , insert Hyperlink and paste "skype:<your skype ID>?add" (without quote).

  • Adding printer icon to dock

    how do I add a printer icon (shortcut) to my dock?

    Your welcome, I'd strongly recommend bookmarking and using:
    Mac 101
    Switch 101
    Find Out How Video tutorials
    List of Useful URLs for switchers

  • Custom Window Decorations: Adding qmark icon for online help

    Hi, All -
    Is it possible to customize a window's decoration (terminology?) to add a Help icon to a dialog's frame, so that it sits beside the Close (X) button in the upper right corner? Can't find any doc on how to do this in the SDK manuals or tutorials.
    Sample dialog at http://users.rcn.com/jcadow/images/helpiconsample.jpg.
    Thanks.
    --Jeff

    Can't find any designed support for what you're asking. Please turn in a bug/rfe for this and let us know the number to vote for -- as part of the request, maybe you can add that we should not only be able to add icons but selectively remove any of the existings ones (min, max, close) since even VB supported this.
    One area perhaps worth exploring is BasicInternalFrameTitlePane which may have some methods to do what you want with icons. Then undecorate your JFrame and add your subclass of BasicInternalFrameTitlePane to the North location of your JFrame. No guarantees, just worth exploring and I hope if you find something that works you post your solution back here. Good Luck.

  • Adding info Icon to Spark Label

    I am trying to add a info Icon next to a Label in Flex so that when somebody hover over icon, they can see a tooltip but so far no lcuk as i dont see anything like that in spark label control. I m new to skining so do not want to goto that rout but any help with this regard will be greatly appreciated.
    Thanks

    Guessing that skinning is your best bet and it's really not that difficult if you take an hour or two to read carefully any one of a number of articles/introductions on the web.

Maybe you are looking for