• 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: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'


  • Subject: Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
  • From: Lance Drake <email@hidden>
  • Date: Fri, 3 Dec 2004 11:12:52 -0700

The contents of an RTF file may look like a string, but they're not; they should be treated as data. Leave it as an NSData and read and write it using NSData methods.
Douglas Davidson

Hi Douglas,

That is excellent feedback and advice. It occurred to me - (after I sent the question, of course) - "Why bother going thru the NSString phase? - just write the data to a file". So, you have confirmed my thoughts and I appreciate your especially prompt help.

Best Wishes,

Lance Drake

_______________________________________________
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


References: 
 >NSString initWithData: NSUTF8StringEncoding - returns 'nil' (From: Lance Drake <email@hidden>)
 >Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil' (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
  • Next by Date: Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
  • Previous by thread: Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
  • Next by thread: Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
  • Index(es):
    • Date
    • Thread