¡@

Home 

2014/10/15 ¤U¤È 10:05:21

iphone Programming Glossary: compiler

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

There is an undocumented property setter on UIDevice that does the trick but obviously generates a compiler warning and could disappear with a future revision of the SDK. UIDevice currentDevice setOrientation..

iPhone ivar naming convention [duplicate]

http://stackoverflow.com/questions/2114587/iphone-ivar-naming-convention

to read and use autocomplete on Any overlap in names from parameters is quickly revealed by the compiler and avoided through more thoughtful naming of parameters or internal variables . 2 even better reason..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

7 in the next section. Note that you are now entering some tricky terrain. Your usual Xcode 3.2.3 compiler will no longer be enforcing your compliance to 3.0 only calls nor does it have a simulator for these... can use the old Xcode to test your app's compliance vs. a 3.x SDK moving the hard work to a fancy compiler and simulator. But you can no longer use the products of the previous SDKs to submit to the app store...

Difference between self.ivar and ivar?

http://stackoverflow.com/questions/4142177/difference-between-self-ivar-and-ivar

. So when you call self.name foo it will call the setName NSString str mutator generated by the compiler which will first release the current string then retains the new string and finally sets name to the..

NSXMLParser example

http://stackoverflow.com/questions/4705588/nsxmlparser-example

What does an underscore signify in the name of a member variable in Objective-C? [duplicate]

http://stackoverflow.com/questions/5659156/what-does-an-underscore-signify-in-the-name-of-a-member-variable-in-objective-c

iphone objective c share improve this question Basically it doesn't mean anything to the compiler. It's just a coding practice used on private instance variables. Your code isn't going to break if you..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

may cause a leak because its selector is unknown I'm getting the following warning by the ARC compiler performSelector may cause a leak because its selector is unknown . Here's what I'm doing _controller.. performSelector NSSelectorFromString @ someMethod Why do I get this warning I understand the compiler can't check if the selector exists or not but why would that cause a leak And how can I change my code.. iphone objective c ios automatic ref counting share improve this question Solution The compiler is warning about this for a reason. It's very rare that this warning should simply be ignored and it's..

Property vs. instance variable

http://stackoverflow.com/questions/719788/property-vs-instance-variable

_myVar strategy is I figured that writing code such as myVar some_other_object doesn't work. The compiler complains that myVar is undeclared. Why is that the case Thanks. iphone objective c cocoa cocoa touch..

Syntax help - Variable as object name [duplicate]

http://stackoverflow.com/questions/7940809/syntax-help-variable-as-object-name

it's not going to be a very practical way of referring to data what if you typo a string the compiler won't be able to catch it . I won't get into second guessing what you actually want to do that would..

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

It is easier than your old code. It is not garbage collection. It has no GC runtime cost. The compiler inserts retains and releases in all the places you should have anyway. But it's smarter than you and..

How do you optionally use iPhone OS 3.0 features in a 2.0 compatible app?

http://stackoverflow.com/questions/986589/how-do-you-optionally-use-iphone-os-3-0-features-in-a-2-0-compatible-app

the MapKit.framework weak_framework MapKit . I found it quite cumbersome since I had to trick the compiler linker to use the 2.0 SDK with all code except the one which uses MapKit. Has anybody more experience..

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

I would like to force the rotation to be set to portrait. There is an undocumented property setter on UIDevice that does the trick but obviously generates a compiler warning and could disappear with a future revision of the SDK. UIDevice currentDevice setOrientation UIInterfaceOrientationPortrait Are there any documented ways..

iPhone ivar naming convention [duplicate]

http://stackoverflow.com/questions/2114587/iphone-ivar-naming-convention

are ALL private given that why not name them in a way easier to read and use autocomplete on Any overlap in names from parameters is quickly revealed by the compiler and avoided through more thoughtful naming of parameters or internal variables . 2 even better reason if you use refactor in XCode on an internal class var that..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

iOS version. For a quick shot of how to do this cf. step 7 in the next section. Note that you are now entering some tricky terrain. Your usual Xcode 3.2.3 compiler will no longer be enforcing your compliance to 3.0 only calls nor does it have a simulator for these. And if you want to support 4.0 features you'll have to do.. directories i.e. put only one version in Developer. You can use the old Xcode to test your app's compliance vs. a 3.x SDK moving the hard work to a fancy compiler and simulator. But you can no longer use the products of the previous SDKs to submit to the app store. FWIW I plan on doing just this check before I ship. What..

Difference between self.ivar and ivar?

http://stackoverflow.com/questions/4142177/difference-between-self-ivar-and-ivar

defined by you this is nonatomic and retain in your case . So when you call self.name foo it will call the setName NSString str mutator generated by the compiler which will first release the current string then retains the new string and finally sets name to the retained string. Just calling name foo does nothing more than..

NSXMLParser example

http://stackoverflow.com/questions/4705588/nsxmlparser-example

What does an underscore signify in the name of a member variable in Objective-C? [duplicate]

http://stackoverflow.com/questions/5659156/what-does-an-underscore-signify-in-the-name-of-a-member-variable-in-objective-c

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

may cause a leak because its selector is unknown I'm getting the following warning by the ARC compiler performSelector may cause a leak because its selector is unknown . Here's what I'm doing _controller performSelector NSSelectorFromString @ someMethod Why do I.. its selector is unknown . Here's what I'm doing _controller performSelector NSSelectorFromString @ someMethod Why do I get this warning I understand the compiler can't check if the selector exists or not but why would that cause a leak And how can I change my code so that I don't get this warning anymore iphone objective.. how can I change my code so that I don't get this warning anymore iphone objective c ios automatic ref counting share improve this question Solution The compiler is warning about this for a reason. It's very rare that this warning should simply be ignored and it's easy to work around. Here's how SEL selector NSSelectorFromString..

Property vs. instance variable

http://stackoverflow.com/questions/719788/property-vs-instance-variable

property here . The problem with using the @synthesize myVar _myVar strategy is I figured that writing code such as myVar some_other_object doesn't work. The compiler complains that myVar is undeclared. Why is that the case Thanks. iphone objective c cocoa cocoa touch share improve this question Properties are just setters..

Syntax help - Variable as object name [duplicate]

http://stackoverflow.com/questions/7940809/syntax-help-variable-as-object-name

anything like this in the Objective C language and in general it's not going to be a very practical way of referring to data what if you typo a string the compiler won't be able to catch it . I won't get into second guessing what you actually want to do that would depend on the goal of this part of your application but you..

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

It is faster than your old code. It is safer than your old code. It is easier than your old code. It is not garbage collection. It has no GC runtime cost. The compiler inserts retains and releases in all the places you should have anyway. But it's smarter than you and can optimize out the ones that aren't actually needed just..

How do you optionally use iPhone OS 3.0 features in a 2.0 compatible app?

http://stackoverflow.com/questions/986589/how-do-you-optionally-use-iphone-os-3-0-features-in-a-2-0-compatible-app

to update yet. I experimented a bit with weak linking of the MapKit.framework weak_framework MapKit . I found it quite cumbersome since I had to trick the compiler linker to use the 2.0 SDK with all code except the one which uses MapKit. Has anybody more experience with this What are you doing to make it compile link. Has..

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

be set to portrait. There is an undocumented property setter on UIDevice that does the trick but obviously generates a compiler warning and could disappear with a future revision of the SDK. UIDevice currentDevice setOrientation UIInterfaceOrientationPortrait..

iPhone ivar naming convention [duplicate]

http://stackoverflow.com/questions/2114587/iphone-ivar-naming-convention

them in a way easier to read and use autocomplete on Any overlap in names from parameters is quickly revealed by the compiler and avoided through more thoughtful naming of parameters or internal variables . 2 even better reason if you use refactor..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

to do this cf. step 7 in the next section. Note that you are now entering some tricky terrain. Your usual Xcode 3.2.3 compiler will no longer be enforcing your compliance to 3.0 only calls nor does it have a simulator for these. And if you want to.. in Developer. You can use the old Xcode to test your app's compliance vs. a 3.x SDK moving the hard work to a fancy compiler and simulator. But you can no longer use the products of the previous SDKs to submit to the app store. FWIW I plan on doing..

Difference between self.ivar and ivar?

http://stackoverflow.com/questions/4142177/difference-between-self-ivar-and-ivar

retain in your case . So when you call self.name foo it will call the setName NSString str mutator generated by the compiler which will first release the current string then retains the new string and finally sets name to the retained string. Just..

NSXMLParser example

http://stackoverflow.com/questions/4705588/nsxmlparser-example

What does an underscore signify in the name of a member variable in Objective-C? [duplicate]

http://stackoverflow.com/questions/5659156/what-does-an-underscore-signify-in-the-name-of-a-member-variable-in-objective-c

Where is it declared iphone objective c share improve this question Basically it doesn't mean anything to the compiler. It's just a coding practice used on private instance variables. Your code isn't going to break if you don't use it. share..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

may cause a leak because its selector is unknown I'm getting the following warning by the ARC compiler performSelector may cause a leak because its selector is unknown . Here's what I'm doing _controller performSelector NSSelectorFromString.. I'm doing _controller performSelector NSSelectorFromString @ someMethod Why do I get this warning I understand the compiler can't check if the selector exists or not but why would that cause a leak And how can I change my code so that I don't get.. get this warning anymore iphone objective c ios automatic ref counting share improve this question Solution The compiler is warning about this for a reason. It's very rare that this warning should simply be ignored and it's easy to work around...

Property vs. instance variable

http://stackoverflow.com/questions/719788/property-vs-instance-variable

the @synthesize myVar _myVar strategy is I figured that writing code such as myVar some_other_object doesn't work. The compiler complains that myVar is undeclared. Why is that the case Thanks. iphone objective c cocoa cocoa touch share improve this..

Syntax help - Variable as object name [duplicate]

http://stackoverflow.com/questions/7940809/syntax-help-variable-as-object-name

C language and in general it's not going to be a very practical way of referring to data what if you typo a string the compiler won't be able to catch it . I won't get into second guessing what you actually want to do that would depend on the goal..

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

than your old code. It is easier than your old code. It is not garbage collection. It has no GC runtime cost. The compiler inserts retains and releases in all the places you should have anyway. But it's smarter than you and can optimize out the..

How do you optionally use iPhone OS 3.0 features in a 2.0 compatible app?

http://stackoverflow.com/questions/986589/how-do-you-optionally-use-iphone-os-3-0-features-in-a-2-0-compatible-app

with weak linking of the MapKit.framework weak_framework MapKit . I found it quite cumbersome since I had to trick the compiler linker to use the 2.0 SDK with all code except the one which uses MapKit. Has anybody more experience with this What are..

Changing Compiler to llvm-clang on existing iPhone Project

http://stackoverflow.com/questions/1412882/changing-compiler-to-llvm-clang-on-existing-iphone-project

Compiler to llvm clang on existing iPhone Project When I switch the Compiler Version to Clang llvm 1.0 in existing projects I get.. Compiler to llvm clang on existing iPhone Project When I switch the Compiler Version to Clang llvm 1.0 in existing projects I get the following build error when Precompiling the .pch file error can't..

Build FFmpeg with xCode 5

http://stackoverflow.com/questions/19092796/build-ffmpeg-with-xcode-5

Platforms iPhoneOS.platform Developer SDKs iPhoneOS7.0.sdk' enable pic disable bzlib It works with xCode 4 different Compiler Path Error Message . configure line 3763 nm command not found iphone ios xcode ffmpeg ios7 share improve this question..

iPhone Development - Compiler Warning!

http://stackoverflow.com/questions/2392286/iphone-development-compiler-warning

Development Compiler Warning Sometimes when i try to build compile a downloaded source i get following warning ld warning directory ' Volumes..

If you could buy two books on iOS development, which ones would you choose? [closed]

http://stackoverflow.com/questions/3196419/if-you-could-buy-two-books-on-ios-development-which-ones-would-you-choose

ios cocoa touch ipad share improve this question Kochan C primitives structs etc. Objective C Foundation framework Compiler pre processor macros directives BNR iPhone Programming Guide Shares material from the Cocoa Book on core concepts like Objects..

iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock

http://stackoverflow.com/questions/3313786/ios-4-app-crashes-at-startup-on-ios-3-1-3-symbol-not-found-nsconcretestackbl

my app with Base SDK iphoneos4.0 Active SDK iphoneos4.0 Deployment Target 3.1.3 and Architecture standard arm6 arm7 . Compiler GCC 4.2. As I understand it this is the correct way to build an app for both iOS 4 and 3. The app runs fine on devices running..

iPhone Compiler Fails: No architectures to compile for

http://stackoverflow.com/questions/3549478/iphone-compiler-fails-no-architectures-to-compile-for

Compiler Fails No architectures to compile for Hey guys I'm trying to implement this in my iPhone app http code.google.com p core..

iPhone GCC / LLVM GCC or LLVM?

http://stackoverflow.com/questions/3739783/iphone-gcc-llvm-gcc-or-llvm

that can be made by using the Clang parser with the LLVM compiler. Watch Session 312 What's New in the LLVM Compiler for more on this as well as the sessions on LLVM from WWDC 2009 if you have them. I saw a 20 speedup going from GCC to LLVM.. but it wasn't a rigorous test so consider that only anecdotal evidence. My recommendation is to use Clang LLVM LLVM Compiler 1.5 if you can for faster build times more performant applications and much better compiler errors. If you use C code or.. to hit in your build settings to gain even a small amount of extra performance for free in your end application. LLVM Compiler 2.0 coming with Xcode 4 has full support for C and promises additional optimizations for compiled applications along with..

Compiler gives warning on performSelectorOnMainThread:@selector(delegateMethod)

http://stackoverflow.com/questions/4499343/compiler-gives-warning-on-performselectoronmainthreadselectordelegatemethod

gives warning on performSelectorOnMainThread @selector delegateMethod I have an NSOperation that wraps some web service..

XCode Compiler Error: ld: library not found for -loauth

http://stackoverflow.com/questions/4895947/xcode-compiler-error-ld-library-not-found-for-loauth

Compiler Error ld library not found for loauth I'm trying to use the Twitter libraries and after adding liboauth.a and adding oauthconsumeriphonelib..

“Variable Undeclared” error when compiling to iOS Device, but not for Simulator

http://stackoverflow.com/questions/6047671/variable-undeclared-error-when-compiling-to-ios-device-but-not-for-simulator

have to do it for all variables in the same situation inside my project. changed C C compiler version using Apple LLVM Compiler 2.1 makes the compilation error goes away but gives a bunch of other problems with other libraries being used in the project...

FFMPEG integration on iphone/ ipad project

http://stackoverflow.com/questions/6854190/ffmpeg-integration-on-iphone-ipad-project

SDKs iPhoneOS6.0.sdk miphoneos version min 6.0 arch arm cpu cortex a9 enable pic You may get a warning such as WARNING Compiler does not indicate floating point ABI guessing soft. No worries. You should be fine to continue to next steps. Build FFmpeg..

Use gcc 4.2 in Xcode 4.2 and iOS SDK 5.0

http://stackoverflow.com/questions/7765157/use-gcc-4-2-in-xcode-4-2-and-ios-sdk-5-0

upgraded to Xcode 4.2 and iOS SDK 5 earlier today. But everything seems different with new compilers. There are two Compiler for C C Objective C options now Apple LLVM compiler 3.0 and LLVM GCC 4.2 . GCC 4.2 is missing. Apple LLVM compiler 3.0 builds.. Plug ins GCC 4.2 Plausible Blocks .xcplugin Contents Resources GCC 4.2.xcspec Change lines 41 and 42 from this ShowInCompilerSelectionPopup NO IsNoLongerSupported YES To This ShowInCompilerSelectionPopup YES IsNoLongerSupported NO Backup the Xcode.. GCC 4.2.xcspec Change lines 41 and 42 from this ShowInCompilerSelectionPopup NO IsNoLongerSupported YES To This ShowInCompilerSelectionPopup YES IsNoLongerSupported NO Backup the Xcode 4.2 iOS Simulator Framework usr directories 15 30 jon@MacBookPro..

Xcode 4 - clang error

http://stackoverflow.com/questions/8301649/xcode-4-clang-error

.. .. three20 br . three20 Build Products three20 usr include libxml2 but I'm not sure what to change here. In Compiler for C C Objective C setting I switched from Apple LLVM compiler to LLVM GCC and get this message cc1obj note obsolete option.. applicable. Otherwise you may also continue to use GCC as a fronted instead of Clang. You can do this by setting the Compiler for C C Objective C build setting to LLVM GCC instead of Apple LLVM compiler . EDIT Based on your edit I can see you are..

iPhone ARC & Facebook SDK

http://stackoverflow.com/questions/8421338/iphone-arc-facebook-sdk

Getting “Expected a property attribute before 'strong'” when compiling an ARC file with LLVM-GCC

http://stackoverflow.com/questions/8584152/getting-expected-a-property-attribute-before-strong-when-compiling-an-arc-fi

flag that disables ARC. That works fine. I also want to make sure my library compiles for LLVM GCC and also LLVM Compiler. I have a property like this @property strong nonatomic NSString foo However when I compile in LLVM GCC I get Expected a.. a property attribute before 'strong' If I change strong to retain it compiles fine. Strong also works fine in LLVM Compiler. What am I missing Isn't strong synonymous with retain iphone ios automatic ref counting share improve this question..