• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ObjC question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: ObjC question (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: ObjC question
  • Next by Date: Re: ObjC question
  • Previous by thread: Re: ObjC question
  • Next by thread: Re: ObjC question
  • Index(es):
    • Date
    • Thread