• 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: Dereferencing Pointers in Debugger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dereferencing Pointers in Debugger?


  • Subject: Re: Dereferencing Pointers in Debugger?
  • From: Enrique Zamudio <email@hidden>
  • Date: Wed, 6 Jun 2001 23:39:40 -0500

If you have a char * (a c-string) then:

p variable

will give you the address in memory, but I think

p *variable will give you the string.

If you have a NSString object, you can use

po variable

to see the contents of the string. In general, po (short for 'print object'
I think) prints the description of any subclass of NSObject. You can po a NSDictionary, for example, and get the description with the curly brackets.

Enrique Zamudio Lopez
Chief Software Architect
North American Software
email@hidden
www.nasoft.com.mx


  • Prev by Date: Re: Layering NSViews -- why isn't this recommended?
  • Next by Date: Re: Language Analysis
  • Previous by thread: Re: Dereferencing Pointers in Debugger?
  • Next by thread: Newbie: how to build data base
  • Index(es):
    • Date
    • Thread