• 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: Can I see the ASCII value of an NSString while debugging?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Can I see the ASCII value of an NSString while debugging?


  • Subject: RE: Can I see the ASCII value of an NSString while debugging?
  • From: "Bob Newhart" <email@hidden>
  • Date: Fri, 15 Mar 2002 01:00:57 -0700

Sure - in the console portion of the debugger (I'm assuming you're using
Project Builder) type
po myNSString
This tells the object 'myNSString' to run it's 'description' method.
You can override 'description' in your own objects to get a nice
debugger description of 'em. 'description' is inherited from NSObject.
More info at

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/Ob
jC_classic/Protocols/NSObject.html#//apple_ref/occ/intfm/NSObject/descri
ption

Really, really useful, especially on NSArray's and NSDictionary's.

Jason

> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden] On Behalf Of John McGruer
> Sent: Friday, March 15, 2002 12:33 AM
> To: email@hidden
> Subject: Can I see the ASCII value of an NSString while debugging?
>
>
> In projectBuilder when debugging is it possible to see the
> ASCII value of an NSString variable. All I seem to be able to
> get is a (sort of) hex representation and a disclosure
> triangle that shows an isa value (also hex). Is there a
> preference to set or something? Thanks if you can help.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/co> coa-dev
> Do not
> post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Can I see the ASCII value of an NSString while debugging? (From: John McGruer <email@hidden>)

  • Prev by Date: Re: Cocoa
  • Next by Date: Re: Can I see the ASCII value of an NSString while debugging?
  • Previous by thread: Can I see the ASCII value of an NSString while debugging?
  • Next by thread: Re: Can I see the ASCII value of an NSString while debugging?
  • Index(es):
    • Date
    • Thread