Re: Targets
Re: Targets
- Subject: Re: Targets
- From: Logan Cautrell <email@hidden>
- Date: Fri, 08 Apr 2011 14:19:51 -0500
It isn't terrible, but it is annoying that you already have a project with a main.m and app delegate, why create new ones?
But a *project* doesn't have a main.m or app delegate, a target does. These files aren't distinguished at the project level, so it's not clear how a new target would pick which files to use. If your answer would be "the same as target X", then just duplicate target X.
Thats a good point. Most of the projects I have, or have had to work on, reuse almost all the same code. It could just be my style or the types of projects I work on, so my personal experience may skew what seems like common place. Perhaps most people do want different main and app delegate code files for their targets. XC3 behavior was very simplistic, it just created a plist for you.
In the above terms it was broken. It just suited you for it to be broken. :)
Indeed, creating a new target in XC3, with the default templates, generates an empty shell for build phases. I don't know if I would consider it broken. Most people aren't going to just create a new XC4 target and run it without modifying in some fashion. This leads to extra work of cleaning up after the default template, instead of just adding things which you have to do in both old and new cases. I don't even need new plists for each the targets in my project, they all use the same one.
Duplicate target X. But I agree with your underlying point. The Xcode 4 behavior is perhaps too one-size-fits-all.
Duplicating the target is a fine solution, most of the time. In my case I don't need or want the project level settings, they all get deleted and an xcconfig association set. Duplication does help reduce the, in my case, cruft created by XC4. I guess by duplicating I get rid most of the issue with new target and default templates.
I think I've talked myself into duplicate being a good starting point for the time being. Thanks! -logan
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Targets (From: Logan Cautrell <email@hidden>) |
| >Re: Targets (From: Quincey Morris <email@hidden>) |
| >Re: Targets (From: Logan Cautrell <email@hidden>) |
| >Re: Targets (From: Quincey Morris <email@hidden>) |
| >Re: Targets (From: Logan Cautrell <email@hidden>) |
| >Re: Targets (From: Quincey Morris <email@hidden>) |