• 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: incompatible pointer type (was: Please help?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incompatible pointer type (was: Please help?)


  • Subject: Re: incompatible pointer type (was: Please help?)
  • From: Andreas Monitzer <email@hidden>
  • Date: Fri, 22 Feb 2002 22:44:05 +0100

On Friday, February 22, 2002, at 07:18 , Joshua D. Orr wrote:

Another way to do it is to use the following method (with the encoding type set for what you getting, a plain text source will work with the this encoding):

[[NSString alloc] initWithData:theData encoding:NSASCIIStringEncoding];


It seems to work well for me. I use this to turn a donloaded NSData html file into a NSString...

Note that for doing it right, you'd have to parse the HTTP-header to get the proper encoding. ASCII might not be correct.

andy
_______________________________________________
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: 
 >Re: incompatible pointer type (was: Please help? (From: "Joshua D. Orr" <email@hidden>)

  • Prev by Date: Re: number formatting
  • Next by Date: Re: seconds into hours ?
  • Previous by thread: Re: incompatible pointer type (was: Please help?
  • Next by thread: RE What to do? (I have a simple method for doing it)
  • Index(es):
    • Date
    • Thread