• 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
Who broke NSLog on Leopard ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Who broke NSLog on Leopard ?


  • Subject: Who broke NSLog on Leopard ?
  • From: David Burnett <email@hidden>
  • Date: Fri, 25 Jan 2008 19:29:27 +0000

Hi,
 while developing on Tiger I was using the following code to debug thee
xml my app was creating.

NSLog(@"%@",
      [[NSString alloc] initWithData:xml
                        encoding:NSUTF8StringEncoding]);

This worked fine, and I left in it as a useful debugging aid, as I could ask users to copy the XML from the system log and it was nice formatted. could just copy and paste it, and load it back into my application.

Now I'm on Leopard I get stuff like.....

<color index="0" rgb="119 41 39"/>\n <color index="1" rgb="129 51 39"/>\n <color index="2" rgb="135 57 39"/>\n <color index="3" rgb="144 63 39"/>\n


Notice the \n, its not me of showing the line feeds, I'm actually getting the characters "\" and "n" in the syslog.


Is there anyway to get the old behaviour back ?

Dave
_______________________________________________

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: Who broke NSLog on Leopard ?
      • From: Chris Kane <email@hidden>
    • Re: Who broke NSLog on Leopard ?
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: String encoding problem (WSMethodInvocation)
  • Next by Date: Re: Who broke NSLog on Leopard ?
  • Previous by thread: Re: NSScroller methods not being called
  • Next by thread: Re: Who broke NSLog on Leopard ?
  • Index(es):
    • Date
    • Thread