xcode4.2

internationalization of an iPhone Application

ⅰ亾dé卋堺 提交于 2019-12-02 07:57:01
I am new to iPhone App development (I am using XCode 4.2) and I was wondering if there is a way to translate all the strings , caption etc ... internally without having to translate them one by one . an idea I have in mind is to use NSUserDefaults to save the language as a global variable and translate everything accordingly another option is to make a look up table (is it even possible in Objective-C ?) Thanks You can use NSLocalizedString(@"<#key#>", @"<#comment#>") and one file (named Localizable.strings( per language. If you use the above function you can use the App Linguan (available on

Make error installing Ruby 1.9.2 via rvm OSX Lion 10.7.2 XCode 4.2

穿精又带淫゛_ 提交于 2019-12-02 04:25:39
问题 I'm getting the following error when trying to install 1.9.2 with rvm /Users/craigspaeth/.rvm/scripts/functions/utility: line 152: date: command not found Installing yaml to /Users/craigspaeth/.rvm/usr /Users/craigspaeth/.rvm/scripts/functions/utility: line 152: date: command not found ERROR: Error running 'make install', please read /Users/craigspaeth/.rvm/log/ruby-1.9.2-p290/yaml/make.install.log And here is the yaml/configure.log [] make install Making install in include make[2]: Nothing

adding an external library to a project in XCode 4.3 [duplicate]

扶醉桌前 提交于 2019-12-02 03:43:30
This question already has an answer here: How to “add existing frameworks” in Xcode 4? 9 answers Newbie here, trying to add the CHDataStructures library to a calculator project I'm working on. I did as suggested in the accepted answer at Linking a static library to an iOS project in XCode 4 and have ended up with this: Unfortunately, I get a 'CHDataStructures.h' file not found error when I try to add the header to classes in my project ( Calculator.m , for example). Any thoughts about how I can get the CHDataStructures library to be, like the Death Star, fully operational? EDIT Okay, here's

Not able to build my project on xcode 4.2

限于喜欢 提交于 2019-12-02 00:54:53
I have upgraded my xcode to 4.2 (using snow leopard).Previously i was using Xcode 3.2.6 and my project build successfully with it. Now I'm unable to build it, instead Xcode emits the following error ld: warning: option -A is obsolete and being ignored ld: entry point (start) undefined. Usually in crt1.o for architecture armv7 Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1 The error seems to be some compiler error but can't figure it out .:( I googled for it but no luck yet. Please suggest some solution. It looks like linker is looking for a start

Code Coverage GCov not working with XCode 4.2 and iOS SDK 5

主宰稳场 提交于 2019-12-01 23:58:02
I've been trying to get GCov working with Xcode 4.2Build 4D199 on Lion with iOS SDK 5.0 to no avail. Has anyone had any luck with this? I'm using Google Tools For Mac for my unit tests and I've linked in libprofile_rt.dylib and added: "OTHER_CFLAGS[arch=*]" = ( "-ftest-coverage", "-fprofile-arcs", "-falign-loops=16", ); as indicated on the Coverstory page here http://code.google.com/p/coverstory/wiki/UsingCoverstory But when I find . -name *.gcda" I come up empty. What am I missing? GCov is no longer supported in XCode 4.2 . You'll note that if you go their "man page" for it , XCode 4.2 is not

Code coverage on iOS Using Xcode 4.2 on Lion

扶醉桌前 提交于 2019-12-01 23:39:15
问题 I'm trying to produce gcd a files from an iOS Xcode 4.2 (4D199) project called CocoaTouchHax on Lion and I'm having incredible trouble. I followed the steps here and I went as far as trying to build llvm/clang from source following steps here. However I continue to get this error: Library not loaded: @executable_path/../lib/libprofile_rt.dylib Where am I going wrong? I've tried to use the install_name_tool to fix the executable path to no avail. Am I over analyzing something? Am I missing

Code coverage on iOS Using Xcode 4.2 on Lion

流过昼夜 提交于 2019-12-01 21:34:54
I'm trying to produce gcd a files from an iOS Xcode 4.2 (4D199) project called CocoaTouchHax on Lion and I'm having incredible trouble. I followed the steps here and I went as far as trying to build llvm/clang from source following steps here . However I continue to get this error: Library not loaded: @executable_path/../lib/libprofile_rt.dylib Where am I going wrong? I've tried to use the install_name_tool to fix the executable path to no avail. Am I over analyzing something? Am I missing something simple? I put this in as a "Run Script" phase prior to linking to ensure I've updated the

How many ways to pass/share data b/w view controller

柔情痞子 提交于 2019-12-01 20:11:09
im new to IOS and Objective-C and the whole MVC paradigm and i'm stuck with the following. I am working on (replica) Contact app, also available in iphone as build in app. i want to pass data through another view controller and the data is pass (null) :(. My Question is, How do I transfer the data from one view to another? As most the answers you got, passing data between one controller and another just means to assign a variable from one controller to the other one. If you have one controller to list your contacts and another one to show a contact details and the flow is starting from the

How many ways to pass/share data b/w view controller

笑着哭i 提交于 2019-12-01 19:39:38
问题 im new to IOS and Objective-C and the whole MVC paradigm and i'm stuck with the following. I am working on (replica) Contact app, also available in iphone as build in app. i want to pass data through another view controller and the data is pass (null) :(. My Question is, How do I transfer the data from one view to another? 回答1: As most the answers you got, passing data between one controller and another just means to assign a variable from one controller to the other one. If you have one

xcode - “attempt to use a deleted function” - what does that mean?

拥有回忆 提交于 2019-12-01 19:06:42
I am writing a C++ library in Xcode 4.2 One of my classes won't compile with this error : "attempt to use a deleted function". There is no specific indication what function it's talking about. I don't want to post the class code here, but does anybody have any idea what this error means? It's nowhere to be found on Google... :( thanks a bunch Roey In C++11 you can declare functions as deleted: struct Foo { Foo(const Foo &) = delete; }; Attempting to use such a function is an error. The purpose of doing this is so that, in this example, copy construction of this type is not possible. This is a