• 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: 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

  • Follow-Ups:
    • Re: ObjC question
      • From: Tony Romano <email@hidden>
    • Re: ObjC question
      • From: Quincey Morris <email@hidden>
References: 
 >Re: ObjC question (From: Tony Romano <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