Re: ObjC question
Re: ObjC question
- Subject: Re: ObjC question
- From: Quincey Morris <email@hidden>
- Date: Mon, 21 Feb 2011 13:37:00 -0800
On Feb 21, 2011, at 13:22, Tony Romano wrote:
> I don’t think that will work, that will pass in the address of the local variable, leftNote(sic) and not the one contained in the object. The address being passed in will be on the stack. I need to pass a reference to the one contained in the object node.
I think what you're trying to do is:
[self insert:&node->left node:n];
which is valid ObjC when used within the class implementation, but it still makes no sense for the *public* 'insert' interface to be (BTreeNode**) rather than (BTreeNode*).
You probably need a public method with one parameter, and a private method with 2 parameters, but I'm just guessing in the absence of further information.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden