Object-orientedCLanguage
When it comes to object-oriented languages, most Windows developers first think of C ++, C #, or Java. However, if you first think of objective-C, you should be a developer in Mac OS, in this modern computer system, mac OS
To set a breakpoint Objective C selectors namedAlignleftedges:You can enter either:
(Lldb) breakpoint set -- selector alignleftedges:(Lldb) breakpoint set-s alignleftedges:
You can limit any breakpoints to a specific executable image by using"--
Because nsobject in the foundation of cocoa framework provides the javasmselector method, only two data parameters can be passed. To pass more parameters, one of the simplest methods is to use RuntimeIDObjc_msgsend (ID Self,SelOp,...) runtime
. H: Header file. The header file contains class, type, function, and constant declarations.. M:Source codeFile. This is a typical sourceCodeFile Extension, which can contain objective-C and C code.. Mm:Source code file. Source code files with such
Note: This is a summary of objective-C syntax translated by netizens.ArticleI think the original text is well written and can be translated, so I will show it here.
Click to download a Chinese PDF FileHere.
===================================
During the development process, we will encounter a lot of string operations. It is a common data type, and the usage of it is summarized below:
// 1. Create a constant string.Nsstring * astring = @ "this is a string! ";
// 2. Create an empty
From: http://www.cocoachina.com/bbs/read.php? Tid-12760.html
I have written similarArticleIn this article, we hope to help the new brother. Pai_^
The objective-C memory management mechanism in the iPhone system is flexible, that is, it can
"Multi-inheritance" of objective-C"
When single inheritance is not enough and it is difficult to model the problem domain, we usually think of Multi-inheritance directly. Multi-inheritance is the ability to derive from an additional direct base
The Protocol application calls each other between two controllers or between the Controller and the custom uiview.
Its Applications are similar to interfaces in Java or C. Assume that a calls B and B calls back a, so we can design it as
IntroductionObjective-C language keyword, paired with @ synthesize.Function: Let the compiler automatically write a method declaration with the same name as the data member to save the declaration of the read/write method.For example:1. In the
Although objective-C is based on C, it is quite different from C ++, Java, and C, it also makes me very uncomfortable. First, call the method [circle setfillcolor: kredcolor] cricle is the class name, setfillcolor is the method name, kredcolor is
In objective-C language, there are two ways to pass the method: ① selector ② blocks. This article mainly describes selector. blocks will be summarized later.
Message Passing is the core mechanism of objective-C language. In objective-C, there is no
Install gnustep
Gnustep Windows Installer provides a simulated development environment for objective-C on the Windows platform. There are four software packages, including gnustep system and gnustep core, gnustep devel and Cairo backend are optional.
Copyright Notice
This article is copyrighted by Vince yuan (Vince. Yuan # gmail.com. Welcome to non-profit reprint, reprint must contain the original link http://vinceyuan.cnblogs.com, and must contain the complete content of this copyright
Document directory
Http://fei263.blog.163.com/blog/static/9279372420113193523828/
Block
Http://fei263.blog.163.com/blog/static/9279372420113193523828/Block
Apple uses the extension Statement C, objective-C, C ++, and block. Currently, only Mac 10
Class:
@interface ClassA : NSObject{}@property(nonatomic, retain) Foo* foo;@end
Class B:
@interface ClassB : NSObject{Foo* foo;}@property(nonatomic, retain) Foo* foo;@end
The difference between the two classes is that the second class contains
Strong and weak are new object variable attributes introduced by ARC. The weak and strong attributes are required only when you open the ARC.
@ Strong is similar to @ retain
@ Weak is similar to @ assign, but @ weak has assigned a value to nil after
Note: This Objective-C topic is a prelude to iOS development. It also helps programmers with experience in object-oriented language development to quickly get started with Objective-C. If you have no programming experience or are not interested in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service