Instance Method

stringWithFileSystemRepresentation:length:

Returns an NSString object whose contents are derived from the specified C-string path.

Declaration

- (NSString *)stringWithFileSystemRepresentation:(const char *)str length:(NSUInteger)len;

Parameters

string

A C string representation of a pathname.

len

The number of characters in string.

Return Value

An NSString object converted from the C-string representation string with length len of a pathname in the current file system.

Discussion

Use this method if your code receives paths as C strings from system routines.

See Also

Related Symbols

- fileSystemRepresentationWithPath:

Returns a C-string representation of a given path that properly encodes Unicode strings for use by the file system.