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.



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep
  • NSString.h Marko Riedel
    • Re: NSString.h Richard Frith-Macdonald

Reply via email to