【发布时间】:2009-09-26 21:31:36
【问题描述】:
我想在objective-c中声明一个指向指针的指针。
我有一个实例变量(primaryConnection),当它发生变化时应该动态更新它以指向一个局部变量。
NSURLConnection *primaryConnection;
-(void) doSomething
{
NSURLConnection *conn;
primaryConnection = conn;
conn = // set by something else
// primaryConnection should now reflect the pointer that conn is pointing to, set by something else... but it doesn't?
}
是否可以以某种方式声明指向指针的指针?还是我错过了什么?
【问题讨论】:
标签: objective-c pointers