project

Get file names of images that are included in project

早过忘川 提交于 2019-12-12 20:19:55
问题 I have added many images to my Xcode project: icons, a main background, default (for splash screen), placeholders, and others. Can I get all these images' names into an array? 回答1: This should return an array of all your pngs in your app folder. [[NSBundle mainBundle] pathsForResourcesOfType:@"png" inDirectory:nil]; Note* The array contains paths. If you just want the name use - (NSString *)lastPathComponent on a specific index of that array, i.e. NSString *imgName = [[imgArray objectAtIndex

Get C/C++ project support back with MonoDevelop 4.0 a.k.a. Xamarin Studio

依然范特西╮ 提交于 2019-12-12 15:39:34
问题 With the latest Xamarin Studio (relabeled from MonoDevelop 4.0), I cannot open .cproj projects anymore that worked in MonoDevelop 3.0.4.7. The feature list says it's not supported on Windows but it also says "Page last modified 09:53, 27 Oct 2010"… Is there a way to re-add the language binding? Do I need to recompile myself? Maybe there is a mirror of old MonoDevelop binaries for Windows? 回答1: C/C++ has never been supported in MonoDevelop on Windows, though reportedly some users were able to

Change Maven-driven project based on Vaadin 11 to Vaadin 12 alpha version?

我们两清 提交于 2019-12-12 14:11:47
问题 Problem I have a working project in IntelliJ 2018.3 for Vaadin 11, created using the Project Base starter-pack. ➥ How do I switch from Vaadin 11.0.0 to Vaadin 12.0.0.alpha4 ? My Question here is similar to this one, Vaadin 8 alpha/beta prerelease fail with “Non-resolvable import POM: Failure to find” errors. The solution on that page was to enable a vaadin-prerelease checkbox in the Profiles list in the Maven sidebar of IntelliJ. But with a Vaadin 11 project, the only such checkbox found

Gradle project sync failed?

会有一股神秘感。 提交于 2019-12-12 10:58:03
问题 When I started up my project this morning it randomly gave me a message saying Gradle project sync failed. Basic Functionality(eg. editing, debugging) will not work properly. in Android Studio. I looked at other answers that people had put up for this problem but they haven't been working. I invalidated my chaches/restarted my project but no luck. I also deleted my .gradle folder from my project folder and still no luck. If any of you guys could help me that would be awesome! This didn't

MSTest project can't get localized string?

懵懂的女人 提交于 2019-12-12 10:54:30
问题 I ran into a strange problem. In my unit test, I want to check the localized strings. However, I can't seem to get it work. For example, I created two resources: Resource1.resx for English and Resource1.zh-CN.resx for Chinese. The unit test project can only get the (default?) English resource string. This is the code I'm using: ResourceManager actual = new ResourceManager(typeof(LocaleTest.Properties.Resource1)); string name0 = actual.GetString("Name", new CultureInfo("en-US")); string name1

Android library projects custom builds

允我心安 提交于 2019-12-12 10:54:15
问题 I have a legacy application and need to split it into a library project (common code) and two application projects (paid and free applications). I don't use Eclipse for development, and also don't use Ant builds provided (generated) by Android SDK (there are several reasons for that: different project directory structure, unit tests integrated into the build, integration with CruiseControl, automatic builds numbering etc), but use our custom build files instead. I need to modify my Ant builds

How can I auto compile my HAML files into HTML files in a tiny project that doesn't run on RoR?

邮差的信 提交于 2019-12-12 08:24:52
问题 I have only today started playing with compass and haml . While I am quite familiar with the way sass works and I get the idea of what compass is for sass and how to use it, I've hit a little bit of a road block when it comes to using haml efficiently. Of course I am hoping that someone here already knows the answer to my problem and can give me a little jump start into haml . Here is what I'd like to accomplish: Auto compile my HAML files when I save them. The project however is just a tiny

How do I start a new Perl module distribution?

怎甘沉沦 提交于 2019-12-12 07:57:10
问题 I'm trying to set up a large-ish project, written in Perl. The IBM MakeMaker tutorial has been very helpful so far, but I don't understand how to link all the modules into the main program. In my project root, I have MANIFEST , Makefile.PL , README , a bin directory, and a lib directory. In my bin directory, I have my main script ( Main.pl ). In the lib directory, I have each of my modules, divided up into their own respective directories (i.e. Utils::Util1 and Utils::Utils2 in the utils

Intellij project view: not show multiple classes in same file

醉酒当歌 提交于 2019-12-12 07:45:41
问题 One frustrating thing I find in Intellij's project view is that it shows all the classes in a file instead of just the class for which the file is named. The problem with this is that to open a file I have to double click twice: once to expand the file and show the classes in the file, and then a second time to actually open the file. In most cases I don't want to see the classes inside of a file. I just want to see the file in the project view and when I double click on the file I want to

CodeDom - Linking multiple classes within a single Assembly

匆匆过客 提交于 2019-12-12 06:39:24
问题 I have a C# application that I am trying to re-create through the use of CodeDom. This application has four classes inside of it. If I were to go into this applications directory, I would find the project file (App.csproj), and if I were to start this project file, all four classes would load together. Furthermore, if I were to build this application, all four classes would build together. My Question: How on earth can I create this functionality through the use of CodeDom? I have sucessfully