相关疑难解决方法(0)

Objective-C相当于Java语言规范还是C++标准?

什么是Java语言规范C++标准的Objective-C等价物?

是这样的:http: //developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html

(我只是在寻找一份(官方的)权威文件,它将解释这种语言的细微之处.我现在就跳过原因:)

standards objective-c

13
推荐指数
2
解决办法
3057
查看次数

Objective-C是否禁止使用结构?

我是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)

struct objective-c automatic-ref-counting

7
推荐指数
3
解决办法
2万
查看次数

我在哪里可以找到解释Objective-C如何实现的文档

我的意思是基本的运行时.如何实现方法调度(通过选择器哈希表?).什么是选择器呢?对象模型如何,以后可以使用一些低级API等添加方法.

我需要从编译器编程的角度来看它,而不是语言的简单用户.

objective-c

4
推荐指数
1
解决办法
313
查看次数