Re: ObjC question
Re: ObjC question
- Subject: Re: ObjC question
- From: Tony Romano <email@hidden>
- Date: Mon, 21 Feb 2011 13:59:04 -0800
- Thread-topic: ObjC question
This is a private interface. For the public interface, I have just -(void)
insert : (NSObject *) obj. I didn't think to use the -> operator. The
complier complains its protected, however, I will look into it. Thanks.
Tony Romano
On 2/21/11 1:37 PM, "Quincey Morris" <email@hidden> wrote:
>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