[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSString.h
From: |
Richard Frith-Macdonald |
Subject: |
Re: NSString.h |
Date: |
Thu, 18 Feb 2010 07:19:00 +0000 |
On 17 Feb 2010, at 22:52, Marko Riedel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello there,
>
> I found this:
>
> #if OS_API_VERSION(100500,GS_API_LATEST)
> + (id) stringWithContentsOfFile: (NSString*)path
> usedEncoding: (NSStringEncoding*)enc
> error: (NSError**)error;
> - - (id) initWithContentsOfFile: (NSString*)path
> usedEncoding: (NSStringEncoding*)enc
> error: (NSError**)error;
> #endif
>
> which does not match the OS X API (encoding passed in as a pointer,
> encodings are ENUMs). Looks like a typo to me. Has this been fixed?
I think that, if you recheck, you will find that these *do* match the OSX API.
The 'enc' parameter is a reference to a value passed out of the method.
- NSString.h, Marko Riedel, 2010/02/17
- Re: NSString.h,
Richard Frith-Macdonald <=