Create a template for existing project ios - xcode4

I have several alike project and i want to skip the process of creating new file and project for every project. I read about project template and i wonder if someone has a good tutorial or reference so that i can implement my project templates. Its basically IPhone development please help.

It's not trivial to add new templates to the ones Apple supplies with Xcode, but one easy solution is that you can create an empty project with just the bare things you want to be common between all of your projects. Then duplicate your new pseudo-template app and you can customize and fill out the code from there.
If you do want to create custom Xcode project templates, here is a tutorial I found that might help you out.

Related

How to use a 3rd party UI template in an Angular project

I'm trying to use an opensource angular template in my angular project. I wan't to know what is the best practice to do this. Should I get the UI source and add that inside my project? or should I do npm install this as a dependency?
This template provides only a zip file containing the project files. Can somebody please shed me some light on this. What is the best way to use this template in my angular project ?
Sidenote: I also wish to use another template in my project made for a user dashboard.
Thanks

Using a solution as a DLL to another (vb.net)

I don't know if there's a way to achieve this, but I have a solution with its references on a single form page (made with ext.net, by the way) and wanted to use it as a reference to another project.
Is this possible?
Edit:
I think it was a poor question afterall. I have a solution with 3 different projects (web, entity and bals) and it's all good there. They all work together for a single form page. Now, I want all of that stuff to be inside another project, which is inside another solution, and call that page with its references from this other solution I'm trying to get it in.
To call an object (or a form) from your original solution in your new solution, you need to add references to Web, Entity and Bals.
There's 2 way to add a reference. You can add a reference to the compiled DLL / EXE or, if you have the source project, you can include the project in your solution (File -> Add -> Add Existing Project) and then add reference to that project.
If I understand your question, you would like to link an entire Solution instead of each projects individually. This can be done by changing the Add Existing Project filter from All Projects Files to Solution Files. This will allow you to import every project from the given .sln file.
However, this is a one shot deal operation that will import the projects at a given time. If you add or remove a project from your original solution after you linked them, you will have to do the same in your new solution.
When adding a reference to a project, you can select another project within the same solution or you can select a compiled DLL. If you have a library project in one solution and an application project in another solution then your only choice is to build the library project and then reference the compiled DLL in the application solution.
That said, there's nothing to stop you adding the same project to multiple solutions. You can add the library project to the same solution as the application project without removing it from its current solution and then you can work on it at the same time as the application, including debugging both at the same time. The application project can then reference the library project instead of the compiled DLL.

Aptana 3 how to use a project in another project without copying files, in order to keep them in sync?

I have a javascript project that is still in development;
Then I have another rails project that will use the javascript project;
I would like to have in "my-rails-project/public/javascript/" the link to the other javascript project.
I would like to be able to make changes within the rails-project and affect the javascript-project.
Is this possible and how?
thanks (:
This is general Eclipse thing and not related to Aptana in particular.
Simply start creating a new Folder and on the wizard page click "Advanced>>>", then choose Linked Folder and Browse to location of your javascript project.
That's it.
Cheers,
Max

Customizing newly created projects in Aptana

I need to define a model for newly created projects in Aptana.
Basically, I want, anytime, when I create a new project, it adds some defined directories/files (not existing files, but new ones) to this project.
I'm not even sure it's possible.
Aptana doesn't appear to support that.
Maybe you can just create a small external sript to do it for you? Not the ideal solution, but better then none.
This might be a longshot, but it is worth mentioning. Since Aptana is based on Eclipse, you might be able to see how Eclipse would handle custom project templates. It appears that the easiest way to go about this is to actually create an Eclipse plugin that has a Template Wizard. IBM has a nice guide on how to use PDE to create a Custom Template. I am not sure if you will be able use PDE from within Aptana (you might be able to), otherwise, you might need to download a stock version of Eclipse, create the Plugin, then install it in Aptana.
Aptana is based on eclipse, so you could use a combination of Maven Archetypes and the Maven eclipse plugin to achieve this really easily.
Download and install maven
Create a basic maven project using the quickstart archetype, Archetypes are project templates used to rubber stamp new project structures. The quickstart is a very basic project template
mvn archetype:generate
generate the eclipse project files using the eclipse plugin. This will create the standard
mvn eclipse:eclipse
tweak the pom until and re-run step 3 until you're satisfied with the layout etc. You'll no doubt have to add configuration the eclipse plugin to add the correct build spec and project nature. If you open an existing .project file it will contain the values you need. you can see here how to add them.
once the project is set up to your liking you can create your own archetype out of it and use this to rubber stamp new projects in the future.
mvn:archetype:create-from-project
now you can run the generate again and can select your archetype from the list. If its not there, you may need to run this first to update the list of archetypes
mvn archetype:crawl
Open Source your archetype for others to use ;)
It's very simple in Studio 3. Try the following: http://wiki.appcelerator.org/display/tis/Creating+a+new+template#Creatinganewtemplate-Creatinganewprojecttemplate
Basically you create a .zip file of the project content, and then write a few lines of Ruby code to reference it.
Aptana uses (as I'm sure you know) its own 'new rails' project that gives you a variety of options.
I don't think it's beyond Will (the RadRails maintainer) to add a simple text field to that Wizard that would allow you to enter a command-line option parameter. He's always been very responsive with my previous bug and feature requests.
If you want to give that a try, and that works, then I would HIGHLY and STRONGLY recommend that you look into one of the new Rails features 'templates' in which you could make a generic template, then call it through the new input box. We use templates at my current job and they save us about 4 hours of work on each project. They are very easy to use...def...definitely.
If you can't wait for the input box, then you could always write the template then call it from within the command line (see
http://m.onkey.org/2008/12/4/rails-templates
for info about templates)
Unless RadRails three is light-years ahead of the latest release, though, you'll be missing out on a lot of very handy advantages of using a more community-supported solution such as VIM or TextMate. (I switched to VIM from RadRails about 4 months ago and have never looked back).
Eclipse has a Plugin Development Environment. If I'm not mistaken, you can also create project templates with it. Please try: http://www.ibm.com/developerworks/library/os-eclipse-pde/

Flex: create a template app?

Whenever I start a new project in Flex builder I always have to go and add all my project build paths, adjust the compiler settings, etc. Is there a way I can make a template with all that done and then just click new from template?
Thanks.
No, but I can think of a workaround or two. Try importing an existing project to a new location, then delete what you don't need.
Even better, you could make a "template" project that has all the settings you want. Then, whenever you want to create a new project, create one, then on the command-line or using Finder (or explorer), copy the project files from the template project in, making sure to update the name correctly. The files that control this are: .flexProperties, .actionScriptProperties, .settings/, and .project, I believe. They are in the root folder of any FB project.

Resources