我想声明一个指向objective-c中指针的指针。指向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?
}
是否有可能以某种方式声明指针指针?或者我错过了什么?
查看我的回答;几乎可以保证提出这个问题的人想要一个指向指针的错误原因。 – bbum 2009-09-26 22:08:51