• 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: CPP reference operator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPP reference operator


  • Subject: Re: CPP reference operator
  • From: email@hidden
  • Date: Fri, 8 Oct 2010 16:20:20 -0600

Well, it appears that the problem is not a language problem.

I was passing a reference to a CPP object instance, doing some work and then setting member variables in the CPP object instance. Upon inspecting the CPP object instance member variables upon return they were displaying 'garbage' in the debugger. This is what prompted the question.

Letting the code run and using NSLog to see the values they are good.

Ergo, this seem to be a 'bug' in the Xcode debugger.

Cost me lots of time though.

-koko

On Oct 8, 2010, at 3:16 PM, Kyle Sluder wrote:

On Fri, Oct 8, 2010 at 2:09 PM, <email@hidden> wrote:
I did and was getting, and still am, invalid results. So, I asked to be sure
I was not violating something and thereby getting invalid results.


I ain't that lame ...

In that case, be more forthcoming in describing your specific problem.

"Can I do X?" is far less helpful than "When I try to do X, the
compiler complains about Y and then my cat coughs up a hairball," even
though the latter might contain a red herring.

So what's the specific problem you're having with using reference
types as arguments to Objective-C methods? Include code demonstrating
the problem for best results.

--Kyle Sluder


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: CPP reference operator
      • From: Scott Ribe <email@hidden>
References: 
 >Re: CPP reference operator (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Making Java Calls from Objective-C !!
  • Next by Date: Re: Problem connecting to Oracle with app run from XCode
  • Previous by thread: Re: CPP reference operator
  • Next by thread: Re: CPP reference operator
  • Index(es):
    • Date
    • Thread