iOS.ObjC

2366 ワード

1.ObjCの基礎 
2.ObjC 2.0におけるコンパイル命令
3.ObjC Runtime
4.ObjC Object Model
5.ObjCの新しい文法
6.FQA
 
1.ObjCの基礎
2.ObjC 2.0におけるコンパイル命令
http://www.learn-cocos2d.com/2011/10/complete-list-objectivec-20-compiler-directives/
http://developer.apple.com/library/mac/#releasenotes/Cocoa/RN-ObjectivieC/index.
3.ObjC Runtime
3.1 class methodの中のselfとinstance methodの中のselfはどこにありますか?
Within the body of a class method、  self refers to the class object itself.
参照:https://developer.apple.com/library/ios/documentation/general/conceptual/DevPedia-CocoaCore/ClassMethod.html
3.2 metaclass
http://www.cocoawithlove.com/2010/01/what-is-meta-class-in-objective-c.html
Class and metaclass:
http://www.sealiesoftware.com/blog/archive/2009/04/14/objc_explin_クラスメイトand_metaclassis.
 
http://resources.infosecinstitute.com/ios-application-security-part-3-understanding-the-objective-c-runtime/
4.ObjCの新しい文法
4.1属性は声明(property命令を使う)だけが必要で、@synthesize命令を必要としない場合、何が発生しますか?
@インターフェース Contect:NSObject
@property NSMutable String*text;
4.2@import
たとえば:
@import UIkit
4.X Moden Objective-C:WWWC 2012 Session 405(TODO)
 
5.QA
5.1 NSCopying NSMutable Copying
Implement-(id)copyWithZone:(NSZone) *)zone「 for immutalbe object. 
ARC:
 - (id)copyWithZone:(NSZone*)zone{return self} 
MRC:
 -(id)copyWithZone:(NSZone*)zone{return[self retain]; 
 
-(id)mutable CopyWithZone:(NSZone*)zone
Ref:
A.POP、POPAnimatiable Property類 
B. http://stackoverflow.com/questions/9127198/objective-c-immutable-object-copywithzone-arc-compatible-realization
5.2
NSカレント 
NSカレント 
CFUカレント
CFURETURNS_NOTURETAINED
NSガリアES UARGUMENT
CFURELEASES UARGUMENT
Ref
A.http://clang-analyzer.llvm.org/annotations.html
B. http://clang.llvm.org/docs/AutomaticReferenceCounting.html#arc-object-operands-retained-return-values
5.3
NSObjectのインターフェース
「+(id)allocWithZone:(struct NSZone*)zone」 サブクラスではどうやって実現すればいいですか?このインターフェースはObjCの中で何の役割ですか?