Adding a new language to Xcode4 localization? - xcode4

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

Related

Atom editor not tracking changes and updating the application

I have been using atom editor for making changes to my application code. I recently made a change in my directory - deleted .git and then moved all my files to a new folder.
Now, when I open the folder in atom editor, I do not see different file colors that I use to. It doesn't track which files have changed or anything like that. When I launch the app locally using MacOS terminal, I don't see the changes reflected in my App.
It's quite strange. What do I need to do to fix this issue?
Here's my root directory in atom. All files appear is same color. something doesn't look right.

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.

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 folder to Komodo Edit

I am new to Komodo Edit (version 5.2 for Linux) and wish to add a new "live" folder to my project. What I mean by that is, I want a new folder to not only appear within my Komodo project but also for that folder to be created in my computers file system. However when I choose to add a new item to my project and using the "add folder" option, the folder is only created within my project but not in my file system. So it seems I am just creating a "virtual folder". I also tried the "add live folder" option but it seems to be only able to add an existing folder.
I know this may seem a bit trivial, but I was expecting to be able to add a new system directory to my project using Komodo Edit without having to use the command line or computer browser. This just seems a little inefficient.
Use the extension JSDriveTree. Once it's installed, restart Komodo and go to Projects=>Add=>New Live Folder, then click the button labeled 'Make New Folder'.

flex air include a directory with the installer

I am creating an AIR application using Flex. In it I need 2 directories downloads & uploads. These directories will have downloaded files & uploaded files.
But the problem is I am not able to create these 2 directories programmatically & also I am not able to include the 2 directories with the installer in the application directory.
Is there any way to create or include directories in the application directory.
Thanks
Create an empty folder inside your Flex project. Right click on your project and go to Properties->Compiler (not exact name but something like that). Make sure it has "Copy nonembedded assets to output directory" (check it if it doesn't). Click Ok.
Export a release build of your AIR app. Do NOT click Finish after the "signing" step. Follow each step until you get to the "assets" screen. It will show you a list of every file and folder in your output (bin-debug, by default) directory.
Check the files you want, uncheck the one's you don't, and click OK. Done. You have your AIR file packaged with whatever file and folder you want.
[...] But I need to create the directories in application directory. I am using: var dir = File.applicationDirectory.resolvePath("upload directory");dir.createDirectory(); And I am getting: at runtime::SecurityManager$/checkPrivilegeForCaller()
This is a know issue. AIR wouldn't allow you to write to the application directory. Instead try writing
either to the File.applicationStorageDirectory (application's scratchpad),
or to the File.documentsDirectory (stuff user might want to lookup)
Related resources:
Adobe AIR team blogpost
Use This Dear :)
var dir:File = File.applicationDirectory.resolvePath("NewFolder");
dir =new File(dir.nativePath.toString());
dir.createDirectory();
Regards
Ali Naqvi
have you tried something like the following
var dir = File.userDirectory.resolvePath("upload directory");
dir.createDirectory();
This will create the directory 'upload directory' if it does not already exist (inside the users home directory).
To add to johncblandii's anwser:
I've found that for the above to work, you also need to include the folder in the project's build path. I also had to refresh the project's file listing before flash builder recognized the folder and added it to the include options.
I just want to add another thing to johncblandii's comment: Create an empty.txt file and write something there. Because it looks like empty folders are nod allowed to be included in your packed application

Resources