Adding new file type (extension) to Xcode4 - xcode4

Is there a way to add extension *.ipp to Xcode4 such that it's treated as a C++ header file?

Open the file inspector. Select the ipp files in the project navigator. Choose C++ Header from the File Type menu in the file inspector.

Related

QT Creator Disable displaying file path in file browser

I move source and header files in include and src dirrectories. Then i define this dirrectories in VPATH and include files without specifying any directory.
After all of this, I want to see files in the File Browser panel as included directly (without any path), but I see relative paths anyway!
Is there some way to disable relative paths in File Browser panel?
P. S. I doesn't like "Simplify Tree" option, coz it place all headers and sources in one folder. This is uncomfortabel.
The screenshots are all taken from "Projects" view, not from file view. The project view is meant to visualize the build system. Your build system has the files stored in a subfolder, so Creator will display that. Since the Projects view is used to add files into the project this is important: Which folder should a new file go into if that folder was not displayed?
It does not matter how you write the filenames into your .pro-file: Creator will get a list of absolute paths for all your sources -- as long as qmake/make can build your project that is:-)

How to change the default Open File... (folder) in Netbeans 8.2?

How can I change the default Open File... directory in Netbeans 8.2 for Java SE\ME\EE?
I've edited my projectui.properties file line projectsFolder=DIRECTORY but that only works for projects. I am trying to open individual files without opening the entire project.
File was found (Windows) under "C:\Users\MYNAME\AppData\Roaming\NetBeans\8.2\config\Preferences\org\netbeans\modules"
Unlike setting the default project directory in NetBeans, you can't modify the default Open File... directory because there is no such "default directory" to change.
NetBeans behavior when you select Open File... from the File menu (on Windows 10 at least) is as follows:
[1] On the first occasion within a NetBeans session the Documents icon will be pre-selected in the Open dialog window, and your Documents directory will be opened. That's just the way NetBeans works, and cannot be modified. Although you can change the Documents folder that will be opened, you probably shouldn't. See below for details**.
[2] Within the Open dialog you can obviously navigate to any alternative folder to open a file. Thereafter, within that NetBeans session only, that alternative folder will be opened by default on the subsequent File -> Open File... selections, until an alternative directory is selected.
~~~~~
** To change the Documents folder in Windows (which will also change the folder that NetBeans opens on the initial use of File -> Open File..):
In Windows File Explorer select Desktop -> This PC -> Documents and right-click.
Select Properties from the drop down menu, and then select the Location tab in the Document Properties window.
Enter the name of the new folder to be used as the Documents folder and click OK.
Restart NetBeans, select File-> Open File... and the folder NetBeans opens will now be the one you specified in the previous step.
That may appear to have the desired affect, but other Windows applications also use the Documents folder, and may depend on files in that folder, so it shouldn't really be changed without good reason. If you really need to open files in NetBeans that are not within any project the cleanest approach would be to place such files in the Documents folder if possible.
One solution would be to move the NetBeansProjects in the Documents folder mentioned above to the desired place and to place a permanent symlink to the desired folder. Instructions for latter referenced here https://superuser.com/questions/1020821/how-to-create-a-symbolic-link-on-windows-10
Watch out if the secondary location could be temporary (like a network drive) that it's always in place before you launch Netbeans.

Web Setup project not including some content files from ASP.NET MVC project

I am making a WEB SETUP for my ASP.NET application. Below is my folder structure for content folder.
I have added a WEB SETUP project and have included the 'Primary output from Web' and 'Content files from Web'.
But when i right click on the 'Content files from Web' and select the 'Output' option I see the following
only my .svg font is added, the rest 4 files (.eot, .ttf, .woff and .otf) are not added. Even when I run the installer and after the setup is complete I still do not see these 4 files in the Content/font-awesome/font folder.
What should I do to add these to the installer as well ?
Some font related files under your Content folder are probably not specified as "Content" files. You have to make Visual Studio understand that they are Content files. Content files are eventually copied to the compiled output directory when you execute your setup.exe file.
Just select your intended file(s) (using Ctrl-click if there are multiple files), right click choose Properties and from the Properties window, in front of "Build Action" choose "Content" option.
Now when you will Build and run your Setup.exe file, these files would be copied to the output directory.

IExpress - create exe with custom icon

With the help of IExpress I created an exe from a bat file and would like to set a custom icon for the exe. Is this possible?
Regards
Try Resource Hacker. It worked here with a test IExpress installer.
Step-by-step instructions:
Create your IExpress package as normal.
Launch Resource Hacker, then open your IExpress-generated executable.
In the Action menu, choose Replace Icon …
Open the file that contains the icon you want to use, then click Replace.
Save the file in Resource Hacker. This will get you two files:
Your new file: package.exe
Your original file: package_original.exe
If the icon for package.exe looks wrong on your computer, this is expected behaviour due to the old icon being cached by Explorer. To clear the icon cache, you can execute:
ie4uinit.exe -show
(This will only be a problem on the computer that you used to edit the file; other computers should show the correct icon straight away.)
As a workaround you can create a shortcut of the exe file and then set a custom icon to it.

Adding a new language to Xcode4 localization?

The app in question is already localized into a few languages, but I'm adding a new one. When I choose to add the new language to Localizable.strings, it places it in the root of the project directory. I'd ideally like it inside Resources, then a directory for the language, but I don't see an option to change the location when creating the localization or afterward. If I move it in Finder, there's no option to tell Xcode where I moved it to, it just colors the filename red and can't find it.
Any help appreciated :)
After moving a file in Finder go back to Xcode, select the file, then open the File Inspector (View - Utilities - Show File Inspector). Click the little arrow near the file name and navigate to the new location.
Sorry can't help you with why Xcode places the files under root directory and not .lproj. My Xcode here does it

Resources