On Thu, Feb 5, 2009 at 9:41 AM, Nick Zitzmann wrote:
>
> On Feb 5, 2009, at 10:29 AM, Francis Devereux wrote:
>
>> I have an NSString with a filename in it that I need to pass to the
>> portable code as a char *. The portable code will then pass it to UNIX file
>> handling functions like fopen().
On 5 Feb 2009, at 17:40, Joar Wingfors wrote:
On Feb 5, 2009, at 9:29 AM, Francis Devereux wrote:
I am porting an app to Mac OS X (well, actually someone else has
ported it and I am building a cocoa GUI).
I have an NSString with a filename in it that I need to pass to the
portable code as
Just use:
const char *filename = [nsstring fileSystemRepresentation];
On Thu, Feb 5, 2009 at 9:29 AM, Francis Devereux wrote:
> Hi,
>
> I am porting an app to Mac OS X (well, actually someone else has ported it
> and I am building a cocoa GUI).
>
> I have an NSString with a filename in it that I
On Feb 5, 2009, at 11:29 AM, Francis Devereux wrote:
Hi,
I am porting an app to Mac OS X (well, actually someone else has
ported it and I am building a cocoa GUI).
I have an NSString with a filename in it that I need to pass to the
portable code as a char *. The portable code will then
On Feb 5, 2009, at 9:33 AM, David Springer wrote:
I generally use UTF8.
On Thu, Feb 5, 2009 at 10:29 AM, Francis Devereux
wrote:
Hi,
I am porting an app to Mac OS X (well, actually someone else has
ported it
and I am building a cocoa GUI).
I have an NSString with a filename in it th
On Feb 5, 2009, at 10:29 AM, Francis Devereux wrote:
I have an NSString with a filename in it that I need to pass to the
portable code as a char *. The portable code will then pass it to
UNIX file handling functions like fopen().
I guess that I need to use NSString's getCString:maxLength:
On Thu, Feb 5, 2009 at 9:29 AM, Francis Devereux wrote:
> I guess that I need to use NSString's getCString:maxLength:encoding: method,
> but what should I pass for the encoding parameter? Phrased another way,
> what encoding does fopen() expect filenames to be in?
-[NSString fileSystemRepresent
On Feb 5, 2009, at 9:29 AM, Francis Devereux wrote:
I am porting an app to Mac OS X (well, actually someone else has
ported it and I am building a cocoa GUI).
I have an NSString with a filename in it that I need to pass to the
portable code as a char *. The portable code will then pass it
I generally use UTF8.
On Thu, Feb 5, 2009 at 10:29 AM, Francis Devereux wrote:
> Hi,
>
> I am porting an app to Mac OS X (well, actually someone else has ported it
> and I am building a cocoa GUI).
>
> I have an NSString with a filename in it that I need to pass to the
> portable code as a char