Adding OCUnit to excisting project in XCode - iphone

I am trying to add OCUnit to a excisting XCode project however I am not able to run it. The "Test" row in the "Product" menu is gray after following this guide. Anyone having another tutorial or know how to that? Or other solutions.

You have to edit the scheme for the application target to enable the Test item in the Product menu. To open the scheme editor, click on the Scheme menu in the project window toolbar and choose Edit Scheme. Select the Test step on the left side of the scheme editor. The list of tests should be empty. Click the + button to open a target sheet. Select the unit testing target from the list and click the Add button.

Related

OSX add application menu (file/edit/view...) to app manually

I'm building a OSX app and I noticed it has no "application menu" (the top left file/edit/view menu), I can't seem to find much about this other than it should be added automatically. How can I add it manually and add or remove items?
I can click it but no menu opens.

Why is "Run configurations" invisible in my perspective?

Namely, I am working on a "New project wizard" plugin. When new project is created I open my perspective to display the project there. It is displayed as expected, but I can not run it since I can not see "Run configurations" menu item under my "Run" menu. I've been looking for a way to get this menu item back with no success. Now, I got curious why is it invisible. Someone knows it already?
Use Window > Customize Perspective.
Look at the Command Groups Availability and select Launch.
You may also want Launch on Tool Bar Visibility.

Adding custom right click menu into Eclipse's project explorer view in RCP application

Currently I'm using Eclipse's Project Explorer view into my RCP Application by writing the following line of command into my "Perspective.java" file...
layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.30f, editorArea);
It is currently giving me all the default right click options that eclipse's project explorer view gives..
i.e. cut, copy, paste, delete, refresh, etc.
I want to add my own custom right click options into these default options. Does anyone know how to do it? Or will have to build my own project explorer view??
Is there anyway from where i can get the code that eclipse used for building the project explorer view?
would like to know what can be done in this situation or any other solution for this??
Thankyou !!
While my comment covers your question, the follow up questions need some more space:
a) how to look at eclipse sources:
*File -> Import ... ->Plug-in Development -> Plug-ins and Fragments -> Next*
Chose *Import as -> Binary Projects* (you can read the source code but not change it. This saces time, because the code doesn't get compiled) ->Next
Chose plugins to import -> Finish
You can find the sources in the projects in "referenced libraries"
b) you need the path to the menu entry and the plugin you want to add to. This can be done with the Plugin spy (Alt+Shift+F1 -> click on the view of which you want to get the id) or or Menu-Spy (Alt+Shift+F2 -> click on the menu entry that you want to add to)in Eclipse.
c) To add a menu entry to the popup, see the How to add items in popup menu? (the one I mentioned in my comment).

How to Reveal in Project Navigator automatically

I want to reveal the currently edited file in the project navigator in xcode
I know about the right-click and Reveal in Project Navigator
How to highlight opened file in XCode 4 on the "Project Navigator" panel?
But it's a manual task
I want it to show EVERY TIME I switch files - like the 2 yellow arrows on top of the Eclipse IDE
I want the project navigator to always highlight the currently edited file.
Thanks,
Nur
Hum... I don't have the answer of your question and I really would like to know it.
But I know something better than right clicking, that is called : ⌘-shift-J
Your hands are on the keyboard, at least you won't have to get the mouse...
At the bottom of project navigator panel "Show only recent file" filter option is given select it to view only recent files edited

IntelliJ: How to create Android widget project?

In Eclipse, I just uncheck "Create activity" and I get widget-ready project.
In IntelliJ, I tried unchecking "Create Hello World project", but then I cannot compile the app (there isn't Run As Android App option).
At the moment I create a regular Android project and then delete the stuff I do not need. Any faster/automated way?
Thanks
Once you have created your project, click the down arrow next to the run button on the toolbar and select "Edit Configurations".
In the top left of this window press the plus button and select "Android Application". Finally, name your configuration at the top of the window and change the radio button selection from "Launch Default Activity" to "Do Not Launch Activity".
As no one answered, I suppose that the only way to create a Widget or Live wallpaper project is to create a regular Android project and then delete the code you don't need from Manifest and Class files.
Looking forward for better solution in IntelliJ.