Where is the Alloy Resources Folder - titanium

I'm using Titanium Alloy 3.0.2 GA (on a Mac) to build a cross-platform mobile app
Why doesn't the Resources folder show up in the Titanium Studio, even though it is present in the filesystem?
I want to store some images that will be displayed within the application, and I believe that I should store them somewhere inside the Resources folder.
When I look at the Project Explorer within the Studio, I don't see a /Resources folder.
When I tried to add a Resources folder to the root, I was told that there is already a Resources folder!
Finder confirms that there is a Resources folder.
So, how do I get the Resources folder to show up in the Studio Project Explorer?
Also- it does not show up in the App Explorer View either.

Yeah I had a problem with this as well, but thankfully this is documented in the guides section. Heres the pertinent information:
If your Resources folder is hidden, in the App Explorer view, click the View Menu button (right triangle pointing down) and select Customize Views..., then the Available Customizations dialog appears. In the Filters tab, uncheck the Titanium Resources Folder checkbox, then click the OK button. The Resources folder should appear in the App Explorer view.
For me It was actually in the "Project Explorer" view that I found the downward white arrow, and in the Available Customizations dialog I had to scroll all the way to the bottom of the Filters tab and uncheck "Titanium Resources Folder."

Hmm...
Yes I was able to view the Resources folder by going into the "Customize View" option in the Studio.
But the proper place to put local files (car images in my case) is under the \app\assets\ folder. The \assets* are copied to the \Resources folder as part of the build.
So I just put my .jpg files under a new \car_images folder (under \app\assets) and was able to access them in my code
var image = Ti.UI.createImageView({
image: '/car_images/Acura.jpg'
})
So actually there is no need to see/modify the \Resources folder as it is managed by the build process
Thanks

Related

View file in project view Intellij

I have started using Intellij and I am trying to find a feature that was in eclipse. I often navigate to a file either through the code or through a CTRL-N search. When I have the file I found open, I want to see which project and which folder of the project the file is in. I found a way to open the file in Windows Explorer which tells me what I want but I would rather stay in intellij and see the folders on the left expanded to the location of the file. Does this exist in intellij?
Thanks
On the heading of Project Explorer panel their will be a circle with 4 lines inside it.
Press that it will take you to the place where you file is inside the project
Image upload not working thats why explaination

intellij usability question - how to add a button that opens working folder

There's a small feature I have been yearning about in intellij idea and I will give it a try in this forum, maybe it is already possible.
In brief: I want a button that opens the working folder of the project I am working on.
Since this is the folder I put my settings files I am doing the following operation dozens of times a day -
open the run/debug configuration.
go to my activbe project tab.
copy the working directory.
open run (win+r).
paste the folder path and press enter.
X dozens of times.
Is there a way to add a button somewhere that opens my working folder?
BTW: I know that in the project settings - External tools - I can add actions. but there is no workingFolder in the macros. is there a way to add the working folder? (eventhough a button would be better)
Thanks a lot.
If you need to manage files, why not do it right from IntelliJ? If you have to go to explorer, right click any file or folder in the project panel, and there's a "Show in Explorer" option in Windows (no default key mapping). There's also "Show Path" (ctrl+alt+F12), which lets you open Explorer to any parent directory of the selected file all the way up to the drive. Finally, "Copy Path" (ctrl+shift+C) will copy the absolute path to the clipboard. (This is in IDEA 10.5, but I know Copy Path has been there a long time.)

How to get the path of my include files in vb.net 2005?

I have created a folder inside my project and i put an icon on it, now i want to use it as my program icon how will i get the link of my icon inside misc folder?
Double-click "My Project".
Open the "Application" tab.
Change "Icon" to "<Browse...>"
Navigate to your icon and select it. Press "Open".
The actual path will be "..\..\Misc\app.ico". But that will not be available when you deploy your application. Your best bet is add it under your project settings so that it will be added as a resource in your application. If you want to do it manualy you will need to make sure the app.ico file is in your application directory and your path adjusted accordingly "app.ico" or if you have an images directory ".\Images\app.ico"

VB.NET Multilingual resource files - work fine in dev - missing in publish

My click-once app has english and spanish content. In development, it runs fine with the two resource files I have - named multilingual.en-US.resx & multilingual.es-MX.resx accordingly. When I publish it looses these resources for referencing. Anyone have any idea why it would do that? The files reside in the root directory for the app.
A couple of things you can check:
Make sure the build action is set to "Embedded Resource" for those two files. (Click on them in solution explorer and check the properties window.)
In the Publish settings for your application, click the "Application Files" button and make sure the resource dlls are set to "Include". If they're not, ClickOnce might not pick them up.

Add an icon (mac & pc) to a file with Cocoa

I want to add an icon (icns & ico) to a file within my iPhone app and I'm not quite sure where to start looking! So when this file is viewed in Finder or Windows Explorer it will have a custom icon.
Can anyone point me in the right direction?
You can use -setIcon:forFile:options: method on NSWorkspace if you want to change the icon of a file or folder in Mac OS X.
I do not have an answer for Windows Explorer. For MacOS, the custom icon of a file is stored in the resource fork of the file as kIconFamilyType with id kCustomIconResource. The custom icon for a folder is stored in a file named Icon\r (\r meaning mac newline) in the folder. For volumes, the custom icon is in a .VolumeIcon.icns file at the root of the volume. In each case, you must set the kHasCustomIcon Finder flag for the item.
Cocoa does not give you access to the resource fork or the Finder flags. Use FSSetCatalogInfo to set the Finder flags. Use FSCreateResourceFork, AddResource and CloseResFile to add a custom icon family to a file. The same resource fork calls are used for the custom icon file in a folder.
The usual way to set an icon is to either paste it in from the Get Info Finder window, or send the Finder an apple event. You can send apple events from cocoa, but that is no help from an iPhone.
To create a file on an iPhone that has a resource fork, you would probably have to build a zip archive that would create a resource fork when unzipped. You would have to manually build a resource fork wrapper around the icon family data. The resource fork structure is well documented.
It would probably be easier to have a helper application on MacOS.