How do you change the icon for an automator app? - automator

I have created a simple application for my Mac using Automator. I am trying to change its icon from the default robot icon, but anything I try does not work. I have tried copy-pasting the image I want using the Get Info technique, but that didn't work. I also converted the image I want as my icon to a .icns file and put it in the resources folder inside the package contents folder for the app. I also renamed that icon to AutomatorApplet.icns. This technique did not work either. Are there any other techniques I can try, or am I simply doing something wrong?

The copy-paste technique actually works. The one thing I realized I missed is to select the image. You need to hit command-a to "select all" before you can copy the image you want to use as your icon. Then to paste the image onto the app/file you want to have the image as an icon for, just select the item and hit command-i. The get info panel opens and you will need to click on the icon on the top left. Hit command-v and your new image should be used as an icon.

Related

Images is not working Xamarin Cross

I add many image (png) to resource (both Android and IOS) and call that in my code. But when I deploy, the image not showing. I try to use the default image (icon.png) and it show. the image that I add to resource doesn't show in that file. Please help.
Just Click on Show all files from solution explorer you will see the images that you were added to Resource folder.
Select that image & Right click on it you will see "Include in Project" option click on it. then run your project

Changing project icon

So I started a project by adding my code to an existing project. The previous project used a res file to hold its icon, and loaded the res in the dpr.
Anyway, if I go to the Project->Options->Application... I should be able to decide what icon I want to use for my project ( using Load icon... button)
But my icon and Load icon button are disabled, and I have no idea on how to re-enable them.
I really dont want to start a new project from scratch now, and move the whole code there. It would be a huge waste of time.
I never had this problem before...
Anybody has any idea why this happens?
Again, how do I change my application's icon?
You should be able swap the icon image just use the same name and delete the old image.

How to localize images in iOS if they are set up in a storyboard?

I know how to localize storyboard elements like label, buttons etc. However, I faced a problem where I need to localize the images that were setup in a storyboard in the attribute inspector for the Image View.
Is there a way to localize those without setting those images up in the code, in the viewDidLoad method and calling setImage:[UIImage imageNamed: NSLocalizedString(...)]; ?
Any kind of help is highly appreciated!
I guess I figured it out...maybe not the ideal way of doing it but works for me...
Open image folder in your Project Navigator (panel).
When you click one of the images, on the right (Inspector panel) you'll see the button "Localize".
Clicking on that button gives you a pop-up asking if you want it to be the base (in my case I say yes).
So now in the inspector there're check boxes: Base, language 1, language 2 etc (language n - is the languages you added to your project in the localization settings).
So now if you put a check mark into one of the language check boxes, your image file will have a drop down arrow showing that it has some content inside. If you click that, you'll see how it expands showing the localized files with the name of the language in the () brackets.
However, at this point those files are all the same as the base. So now you need to substitute the base files with the localized ones.
If you right click on the file that needs to be localized, say myImage.png(German), open it in Finder, and replace that file with the right one. Important! The name of the file should stay the same!
I'll post the screenshots later, so it's all clear how to do it.
Using Xcode 9.2
you can achieve it easily like the following
1- From Assets
2- Then you will need to change the Direction option AND CHOOSE BOTH
xcode will allow you to add 3 more image for other language resource
3- add your needed image and use it in story board or from code as well

how to add to the media library in xcode?

I'm a beginning programmer, so sorry if this sounds stupid. I understand that I have to put the image into Xcode through the media library... but where is the media library? I threw the image file into the folder I made when I created the project but it's not showing up. I have the same image in there in 2 formats: PNG and JPEG. Where is the location of the "Media Library"?
What do you mean with Media Library? The pane in Interface Builder on the bottom right? That just lists all the media items that are part of your current project or workspace.
You have to add the images to your project, if you want to use them in your app. The easiest way is to drag them in one of the Groups in Xcode's Project Navigator tab on the left side. Make sure you check your target (this will make Xcode copy the images into your app's resources on compile time).
If you have the png or jpg, first, you need to create an imageset and then restart xcode, it would be available inside the media library.
To create an image set, you need to select the Assets.xcassets in the left navigation pane, and then in the tool bar select the editor -> Add Assets -> New Image Set. Give a name to your image and select render as Template Image.

Changing an image doesn't work

I have downloaded a MVC project from an Open source and I am trying to make it my own.
I want to change images and add different things, new pages etc...
When I am changing an image in the content folder (for example the logo appearing at the top of the master page) it is always showing the old one.
If I change the name to logo1 for example I can see the new logo but as long as I am using logo the old logo is showing even if I changed the image.
Do you have an idea of what is going on!
Thanks
The browser is caching the image, clear the cache and you should see the new image.

Resources