• 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
Xcode debugger & NSString display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode debugger & NSString display


  • Subject: Xcode debugger & NSString display
  • From: Peter Teeson <email@hidden>
  • Date: Sun, 08 Dec 2013 15:43:21 -0500

My environment: OS X Lion 10.7.5, Xcode 4.6.3
I have Googled, and StackOverFlowed but not yet found what can be done.

My issue is that the debugger displays the text of these two variables :
NSString *imgpath = [[NSBundle mainBundle] pathForImageResource:@"normal"];
This one is of (Class)_NSCFString and after the  address displays @"/Users/.…"

NSAttributedString *normal = [[NSAttributedString alloc]initWithString:@"THEGARBLE"attributes:attrs];
Similarly this one is of (Class) NSConcreteAttributedString and displays @"THEGARBLE"

However these two are of (Class) _NSCFConstantString and do not display any text.
NSString *plain = [normal string];
NSString *plain2 = @"THEGARBLE";

I have right-clicked on all the variables and done Print Description of…
Everything displays on the log and is correct.

I've also looked up what info I could find about Summary Format for type….
Aside from one reference which attempts to describe the undocumented syntax nothing helpful.

So it seems to me that at least NSStrings of (Class) _NSCFConstantString will not be displayed.
But the others seem to work as expected.

Questions

(0) Did I miss something?
(1) How can this be solved to display the data for _NSCFConstantStrings?

thanks….

Peter



 _______________________________________________
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: Xcode debugger & NSString display
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Logic Testing on iOS devices is not supported.
  • Next by Date: Re: Dependency cycle for target "xxx.lib" detected: xxx.lib -> xxx.lib
  • Previous by thread: Re: Logic Testing on iOS devices is not supported.
  • Next by thread: Re: Xcode debugger & NSString display
  • Index(es):
    • Date
    • Thread