xcode3to4

Xcode4 templates now use underscore on iVars?

邮差的信 提交于 2020-01-04 03:56:23
问题 I have noticed that with Xcode4 Apple has updated the application templates to include underscores before instance variables. // Xcode4 @property (nonatomic, retain) IBOutlet UIWindow *window; @synthesize window = _window; . // Xcode3 @property (nonatomic, retain) IBOutlet UIWindow *window; @synthesize window; I know there are differing opinions on the usefulness of this but I was just curious if the updated templates where: (1) Highlighting a new best practice. (2) Showing how Apple does

Install Xcode 4 and keep Xcode 3?

做~自己de王妃 提交于 2019-12-29 01:01:09
问题 I've read many time that we can install Xcode 4 and keep Xcode 3. BUT, i've also read that it was not possible with Xcode 4 GM. Anyone have done this with success? Update: Ok, I have installed-it. (different folder) But it always crash at start. (xcode encounter an internal logic error) Someone have an idea? 回答1: It's fairly easy to do. When running the installer, just change "Install location" to something other than /Developer 回答2: You can install them both fine, simply choose separate

Install Xcode 4 and keep Xcode 3?

无人久伴 提交于 2019-12-29 01:01:08
问题 I've read many time that we can install Xcode 4 and keep Xcode 3. BUT, i've also read that it was not possible with Xcode 4 GM. Anyone have done this with success? Update: Ok, I have installed-it. (different folder) But it always crash at start. (xcode encounter an internal logic error) Someone have an idea? 回答1: It's fairly easy to do. When running the installer, just change "Install location" to something other than /Developer 回答2: You can install them both fine, simply choose separate

how to implement application tests in xcode4?

ぐ巨炮叔叔 提交于 2019-12-28 02:39:09
问题 I'm trying to add some Tests for my application. Following the Document from Apple, I add two testing bundles to my project. The logic tests are no problem, but when I try to make the application tests on a device I always get the error that the logic tests don't run on a device. In Xcode 3 there is no problem with that. Only Xcode 4 throws this error... Any suggestions? Thanks, Tim 回答1: i was also having problems with setting up application tests in xcode4. A solution that worked for me was

Sort File List in Xcode4?

浪子不回头ぞ 提交于 2019-12-19 03:24:18
问题 This was answered for XCode 3, but not XCode4. Answer for XCode3 has not gotten an answer for 4. So: Is there a way in Xcode4 to sort my list of files under say the Classes folder Alphabetically? It appears this option has disappeared. I am happy to remove this question and move to the XCode3 answer after it has been answered, if that makes folks happier. 回答1: Update: Good news, everyone! As of Xcode version 4.5, you can now sort by name or type. Select the files you want to sort and choose

How to add javascript file to Xcode4

坚强是说给别人听的谎言 提交于 2019-12-18 13:07:40
问题 I worked with javascript files within Xcode3 before and everything is great, you just need to copy .js into remove the JavaScript file from the Compile Sources build phase and add it to the Copy Bundle Resources build phase just as suggested in this post the problem now is how do I do the same thing in Xcode4, I can't seem to find the place to do that. Help please, Thankz all in advance. Pondd 回答1: Have a check here Project Navigator (Cmd + 1) Select your project Select target Select "Build

Xcode4 workspace sharing projects

我是研究僧i 提交于 2019-12-10 10:16:33
问题 I am trying to use the new Xcode4 workspace feature to migrate some Xcode3 projects that has dependencies between them. I have a project which creates a static library and then an application project which depends on the static library. So, as the guide mentioned, I created a new workspace and dragged both the projects into the workspace. However, when I build my application, it's unable to find the header files from my static library. I get "No such file or directory" error. My intention is

Xcode4 workspace sharing projects

▼魔方 西西 提交于 2019-12-06 00:05:44
I am trying to use the new Xcode4 workspace feature to migrate some Xcode3 projects that has dependencies between them. I have a project which creates a static library and then an application project which depends on the static library. So, as the guide mentioned, I created a new workspace and dragged both the projects into the workspace. However, when I build my application, it's unable to find the header files from my static library. I get "No such file or directory" error. My intention is to let Xcode auto detect the dependencies. But, not sure what I am doing wrong, I couldn't get it to

Sort File List in Xcode4?

匆匆过客 提交于 2019-11-30 21:07:09
This was answered for XCode 3, but not XCode4. Answer for XCode3 has not gotten an answer for 4. So: Is there a way in Xcode4 to sort my list of files under say the Classes folder Alphabetically? It appears this option has disappeared. I am happy to remove this question and move to the XCode3 answer after it has been answered, if that makes folks happier. Update: Good news, everyone! As of Xcode version 4.5, you can now sort by name or type. Select the files you want to sort and choose Edit > Sort > By Name . Thanks to @Snow-Crash for mentioning this in the comments below. Please upvote the

How to add javascript file to Xcode4

守給你的承諾、 提交于 2019-11-30 08:50:35
I worked with javascript files within Xcode3 before and everything is great, you just need to copy .js into remove the JavaScript file from the Compile Sources build phase and add it to the Copy Bundle Resources build phase just as suggested in this post the problem now is how do I do the same thing in Xcode4, I can't seem to find the place to do that. Help please, Thankz all in advance. Pondd Have a check here Project Navigator (Cmd + 1) Select your project Select target Select "Build Phases" tab, there you will get your desire sections. 来源: https://stackoverflow.com/questions/5959941/how-to