• 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
dumb NSLog question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dumb NSLog question


  • Subject: dumb NSLog question
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 08 Jan 2006 17:10:35 -0800
  • Thread-topic: dumb NSLog question

Why doesn't this code work?

NSString* tmChar = [[NSString alloc] initWithBytes:"\xE2\x84\xA2"
    length:3 encoding:NSUTF8StringEncoding];
NSLog(@"%@",tmChar);

The debugger shows that tmChar is a tm character. But nothing is logged. Why
not?

Here's another take on the same thing. This works:

NSLog(@"hey: %@",tmChar);

So what's making the difference? Thx - I feel like I've asked this before
but I'm afraid I've forgotten the answer. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: dumb NSLog question
      • From: Lester Dowling <email@hidden>
  • Prev by Date: Re: -observeValueForKeyPath:ofObject:change:context: only, > defined for abstract class.
  • Next by Date: Re: dumb NSLog question
  • Previous by thread: Printing an Image View
  • Next by thread: Re: dumb NSLog question
  • Index(es):
    • Date
    • Thread