[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nsstringencoding
From: |
Richard Frith-Macdonald |
Subject: |
Re: nsstringencoding |
Date: |
Thu, 26 Jun 2003 09:41:38 +0100 |
On Thursday, June 26, 2003, at 09:23 am, reuss wrote:
NSStringEncoding *kodolas = [NSString availableStringEncodings];
NSLog(@"%@\n",kodolas);
and I get
Segmentation fault
what is wrong my code?
The NSStringEncoding type is basically an integer ... to print a
zero terminated array of integers you need something like
while (*kodolas != 0)
{
NSlog(@"%d", *kodolas);
kodolas++;
}