OK, so here's my situation :
My app graphics are not copied into the Bundle's resources folder, but into a subfolder (e.g. Resources/Graphics)
I need to properly set the icons - either for the app icon, or the document types associated with the app - in the info.plist
However, here's the issue :
If I set CFBundleIconFile = "myicon"; and myicon.icns is in the Resources bundle folder, it works fine.
If myicon.icns is in the Graphics subfolder, then - even if I set a path like CFBundleIconFile = "Graphics/myicon"; or CFBundleIconFile = "Graphics/myicon.icns"; - it doesn't seem to pick it up.
So, any ideas how this can be fixed? (obviously without telling me to copy the .icns in the Resources folder).
Subfolder doesn't matter in this case, so you dont need to set the full path, only file name, without extension.
CFBundleIconFile = "myicon";
this line will be enough for the app to load the correct file from the bundle.
You aren't allowed to have several icon files with same name in one project/bundle.
You aren't required to copy the files into Resources folder, only thing is that the file must be added to the project.
Related
I get this error and I can't start my application or edit it.
I've tried deleting the Resources folder and putting everything back and it doesn't help. I also checked my 'Resources.resx' custom tool namespace, and it's fine (uses "My.Resources").
I've tried deleting my images by moving them. It's as if the resx file is hidden from VB.
I really have no idea where to go from here :(
enter image description here
Application resources are added to Resources.resx file. It create a static property against each added resource while file are stored in a Resources folder physically on the file system however, they are embedded into application on compilation depending.
Because you have deleted the resources(images most likely) from Resources folder but application (Resources.resx) is still referencing to these files.
There are two ways to fix it.
1- Go to application resources TAB and delete all the resources & Added the back.
OR
2- Put all the resources into Resources directory. select all and include them (because you had deleted them once so, they may still present in the directory but are not included in project). if you do not see in folder(from visual studio then make sure to click show All Files button on the solution explorer.
This shows how to go to Resources TAB
This shows how to include resources which already exists in the folder (got deleted)
I simply wish to change the name of a folder that lies in my root project folder.
I have changed the name of a project (say from Proj1 to Proj2).
I now have a folder on my desktop that reads Proj2. Inside is Proj2.xcodeproj and a folder called Proj1 with all of my source files and resources.
I want to change that folder to be consistent and read Proj1, however if I change it every file in my xCode proj becomes red.
Is there a technique to change this folder within xCode such that I can rename the folder and keep all my files intact with the appropriate structure (such as what groups the files are in)?
It's annoying, indeed.
However, there's no way to keep files on the hard drive (SSD, ..) and group names and the project structure in Xcode in sync automatically.
You can re-assign the locations of the files in your red folders manually to fix it.
Wish Xcode would offer a feature like this since we've switched to Xcode from MW CodeWarrior, but..
After you rename the folder, open the project in Xcode and select this folder. You can choose the renamed folder in the File Inspector Pane.
When I tried to archive one of my iOS projects, I got this warning message:
Validate MyApp.app ...in ....
Icon specified in the Info.plist not found under the top level app wrapper: Images/icon.png
I have put all images files under Resources/Images and created folder reference to Images folder in the project. What value I should give to Info.plist for icons images under a folder reference?
This is my current values:
Make sure that folder reference is setup properly. This can happen when the folder path is not specified correctly in relation to the project folder.
Just noticed, where is the itunesartwork.png file? I see it listed in your plist, but not in the folder.
I already have this code from another question on this website.
Help.ShowHelp(ParentForm,
("C:\Users\Beaudean\Desktop\Help.chm"),HelpNavigator.TableOfContents, Nothing)
That works fine except i need the location of the chm help file to point to "my.resources" where it exists because i need to install my program but in that code example it only works with strings?
Thanks you :)
You cannot make this work. The .chm help file viewer is an external program, hh.exe. It doesn't know anything about managed resources, it needs a .chm file on disk.
Setup your project so that the .chm file is available in your build directory. Project + Add Existing Item and pick your .chm file. Select the added file and set its Build property to Content (so it gets installed with the rest of your files) and its Copy to Output Directory to "Copy if Newer" (so it gets copied to your build directory).
And modify your code so it can always find that file:
Dim path = System.IO.Path.Combine(Application.StartupPath, "Help.chm")
Help.ShowHelp(ParentForm, path, HelpNavigator.TableOfContents)
i am using itextsharp and creating a PDF with images.
currently the images i am using in the application are on my desktop, but i will need to make an installation file that will put the images in a specified directory on the users computer and be able to call them from the specific directory.
how do i include pictures with my build?
how do i reference the pictures? currently i am using:
Dim jpeg3 As Image = Image.GetInstance(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\2.jpg")
How and where do you add the pictures?
If you simply added them to the project as if they were code files (using "add existing item"), then check the Properties for the file in the solution explorer (Build Action, and Copy To Output Directory are useful), and also the Application Files button/window (under the project settings -> Publish). This is useful for distributing the files along with the application (for both debug and release), deployed in a specific sub-directory.
If you added the files to the project's resource file, you can use them using the My.Resources namespace.