什么是Java语言规范或C++标准的Objective-C等价物?
是这样的:http: //developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html?
(我只是在寻找一份(官方的)权威文件,它将解释这种语言的细微之处.我现在就跳过原因:)
我是Objective C的新手
我试过用一个简单struct而且得到了
arc forbids objective-c objects in struct
Run Code Online (Sandbox Code Playgroud)
查看ARC,看起来这是定义Objective C syntaxt的规范 - 这是正确的吗?
其次,struct如果不允许,我该如何使用呢?
谢谢!
编辑:一些代码作为示例
@implementation Cities {
// The goal is to have a struct that holds information about a city,
// like when a person started and ended living there.
// I was trying to make this struct an instance variable of the Cities
// class
// XCode doesn't like the below struct definition
struct City
{
NSString *name;
int *_startYear; …Run Code Online (Sandbox Code Playgroud) 我的意思是基本的运行时.如何实现方法调度(通过选择器哈希表?).什么是选择器呢?对象模型如何,以后可以使用一些低级API等添加方法.
我需要从编译器编程的角度来看它,而不是语言的简单用户.